Forum Moderators: phranque

Message Too Old, No Replies

rewrite images to nothing

         

sned

6:34 pm on Feb 15, 2007 (gmt 0)

10+ Year Member



I'm trying to work on a low-bandwidth version of my website (no images at all) using a rewrite rule like this:

RewriteRule \.(jpe?g¦gif¦bmp¦png)$ /images/blank.gif [L]

Of course, as you can tell, the rewrite to a blank image gets rewritten, which would result in an infinite loop, but for the recursion limit.

Is there any way where I can just rewrite the image to nothing ... like /dev/null?

Thanks!
-sned

encyclo

4:05 am on Feb 17, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I just send a simple 403 Forbidden error in these circumstances:

RewriteRule \.(gif¦jpe?g¦bmp¦png)$ - [b][F][/b]