Currently I have a .htaccess file that will get rid of a .png extension at the end of an image (example: http://ift.tt/1N5qcUa would be able to be accessed from http://ift.tt/1KXZ3wp)
Now, this script works perfectly fine, HOWEVER, I need to know how I can add support for .gifs, .jpgs, etc. (example: http://ift.tt/1N5qavM would be able to be accessed from http://ift.tt/1KXZ3wr)
My code so far:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) /images/$1.png [QSA,L]
ErrorDocument 404 http://hi.lario.us/404
ErrorDocument 500 http://hi.lario.us/404
Thanks guys! :)
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire