Default (fallback) Image with .htaccess? -
I'm curious if it is possible to use .htaccess
when serving a default image A special image has been requested which does not exist ( Note: Only image-requests should increase this behavior ). I know that I can do this with a script by serving images, but I can be more about it with .htaccess, so I'm more curious.
Assume that I request / thumbnails / 010, which is not present
I believe this will work for you. Keep this .htaccess in your thumbnail directory and any URI / Thumbnails that do not exist /thumbnails/default.gif
Rewind engine for rewriting on% {REQUEST_FILENAME} -s [OR] RewriteCond% {REQUEST_FILENAME} -l [OR] rewritecode% {REQUEST_FILENAME} -d Rivieraith ^. * $ - [NC, L] Remit Rules ^. * $ Default.gif [nc, l]
Comments
Post a Comment