Hotlink Protection - Windows Apache

I've set httpd.conf to read ht.access instead of .htaccess and set it up. The ht.access is being read since i tested it with 'Deny All'.

I've added the following lines into ht.access

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://yyy.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yyy.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yyy.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yyy.com$ [NC]
RewriteRule .*\.(zip)$ http://www.yyy.com [R,NC]

Thats the code i've used on all my linux apache boxes and its worked fine. However its not working on Windows Hotlink Protection - Windows Apache and i get a 500 error.

Really could do with some help or suggestions.
Thanks in advance.

 

 

 

 

Top