|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
More rewrite problems
Alright, I have a ruleset setup to deny remote linking of jpegs and gifs for my server. Unfortunately, (and I think this only applies to webcaching proxies since I see the images fine) some of, if not all the time the only image displayed is the one I had set up to display when someone remotely links our images. This applies to all the images on the site for some reason...
Can anyone help me clear this up? (this is the ruleset from my httpd.conf) RewriteEngine on #RewriteCond %{HTTP_REFERER} ^$ [OR] # allow remote linking from *.fighters.net, but nowhere else RewriteCond %{HTTP_REFERER} !^http://(.*)fighters\.net/.*$ [NC] # rewrite the gif or jpeg call with this handy png file RewriteRule .*\.([gif|jpe?g]+)$ http://www.fighters.net/linkisbad.png [NC]
__________________
To alcohol! The cause of, and solution to, all of life's problems. -- Homer Simpson |
|
#2
|
|||
|
|||
|
You need to change your RewriteRule to be:
# External redirect RewriteRule .*\.([gif|jpe?g]+)$ http://www.fighters.net/linkisbad.png [R,L] # Internal redirect RewriteRule .*\.([gif|jpe?g]+)$ /server/path/to/no/symlink/linkisbad.png [T=image/png,L] |
|
#3
|
|||
|
|||
|
Alright, thanks.
|
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > More rewrite problems |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|