views:

34

answers:

2

This is what I have, but doesn't seem to be working.

RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://(www\.)?domain.com/ .*$ [NC] 
RewriteRule ^.*$ http://mydomain.com/new-pic.jpg [L]
A: 

You have a missing slash before the dot in dot-com:

RewriteCond %{HTTP_REFERER} ^http://(www\.)?domain\.com/ .*$ [NC]
Sohnee
I tried this, but it doesn't work. RewriteEngine on RewriteCond %{HTTP_REFERER} ^http://(www\.)?domain\.com/ .*$ [NC] RewriteRule ^.*\.jpg$ http://mydomain.com/new-pic.jpg [L]
Jonathan
A: 

Redirect your 404 page to this image.