- Code: Select all
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?site.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?sub.site.com/.*$ [NC]
RewriteRule \.(gif|jpg|swf)$ redirect.gif [R,L]
Now, I am capable of getting this to work for the main site (the first listed), but not for the sub.
Is there some lil' extra step I should be taking?
Thanks in advance for all your replies.


