mod_rewrite: Stop hotlink cause 500 error
Hi,I have this in my .htaccess file:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://your_domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.YourDomain.com/.*$ [NC]
RewriteRule .*\.(gifGIFjpgJPG)$ - [F]
I check the error logs on the server and this is what I see...
[Tue Mar 12 20:38:42 2002] [alert] [client
XX.XXX.XX.XXX] /home/sites/site4/web/main/test/.htaccess: RewriteEngine
not allowed here
I figure it is something as simple as adding a line in the access.conf
file or something... but I am not a pro (YET) I don't ask unless I am
really stumped and we have tried a number of possible solutions
presented to us so far and unfortunately none work so far.
Any suggestions or help would be appreciated.