Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: use of L and R on rewrite
12-05-2012, 12:08 AM #1
- Join Date
- Nov 2010
- southwestern USA
- Thanked 34 Times in 33 Posts
use of L and R on rewrite
Im curious if this is a good idea or if there is a better way.
In one of my rewrites i use F to deny them access. My idea is to use the R instead and then make a special error file just for that.
What i mean is this.
On this rewrite instead of just showing them a special error page, i want to show them an image that says NOT AUTHORIZED.
So my idea is to use lets say R=301 for example. Then make a special error page for 301 that displays the image.
The problem with this is that all normal 301 will also see the image and i dont want that, i just want them to see the image if it is denied thru the rewrite.
So should i make a fake code like R=999 i dont know.. it would be great if i could do R=link to my image but i dont think thats possible
And i meant F not L in the title lol.
Actually i just had a thought here and it might not work what i said.
what i have is below, if i block them from images then they wont be able to see the not auth image either unless i put it above the public html right.
it would be nice if i could do R=link instead of just F here
RewriteRule .*\.(jpg|jpeg|gif|png|bmp|wmv)$ - [F,NC,L]
Last edited by durangod; 12-05-2012 at 12:13 AM.