I had a 404 error page for my website that worked, but now i'm trying to add hotlink protection but that fails, and now i get error 500 pages
code:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(www\.)?tsdme\.nl/ [NC
RewriteCond %{HTTP_REFERER} !^$
RewriteRule \.(jpe?g|gif|bmp|png)$ images/nohotlink.jpg [L]
ErrorDocument 404 /error404.htm
Does anyone know what i'm doing wrong?
nevermind i already fixed it
code:
ErrorDocument 404 /error404.htm
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?tsdme.nl(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://www.tsdme.nl/images/nohotlink.jpg [R,NC]
It still doesn't work
, I don't have those 500 errors anymore, but the hotlink protection doesn't work properly