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]
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]
You have a missing slash before the dot in dot-com:
RewriteCond %{HTTP_REFERER} ^http://(www\.)?domain\.com/ .*$ [NC]