Here is what I have for now in my .htaccess
and this should work in future:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
The question is:
how can I make this rewrite /tmp/some_image.png -> /image.php?file=some_image.png
I've tried to make my own rule, but without success.
Thanks.
See Question&Answers more detail:os