Htaccess Hotlink Issue


#1

I have the following .htaccess file in my domainname.com/image directory to prevent image hotlinking:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www.)?joshuastarling.com [NC]
RewriteRule .(jpg|jpeg|png|gif)$ - [NC,F,L]

I also have a .htaccess file in the root of my domain error redirection.

The .htaccess file for image hotlinking wasn’t working yesterday at all when I uploaded it. Then it was working this morning. However, when I came back from lunch, it was not working anymore.

The file for redirection always seems to be working.

Any ideas?


#2

Scratch that…I got it figured out.