My image is displaying correctly in a browser, but when i use the image link inside an HTML compiler, its showing a broken image symbol.
Image link : http://winterminer.com/glogo.png
<img src="http://winterminer.com/glogo.png" alt='fail'>
I m using Ubuntu 18.04 LTS, Apache web server installed through webmin/virtualmin.
I m struggling with this thing for weeks, any help would be appreciated
Home
/
user-549576
Ragav's questions
How to make both links and images work in .htaccess
this is what i want
www.example.com/randomword --> /index/q1.php?encid=$1
www.example.com/anyname.jpg --> /index/img/q2.php?encid=$1
I tried this rewrite rule, but its not working
RewriteRule ^(.*)$ ./index/q1.php?encid=$1 [N,NC,QSA]
RewriteRule ^(.*\.(gif|jpg|png))$ ./index/img/q2.php?encid=$1 [L,NC,QSA]
When i used the links individually it works fine, but when i combine, its not working