DRE
Well-known member
I tried replying to a post but the thread got locked so I'll ask here.
How can this be done for a folder?
For instance, instead of doing this htaccess rule for the site root, can't I just put this .htaccess file inside a folder that's in the site? If I did, what would the rewrite rule look like? For instance, this code goes into the root. I would need it to go here: http://www.mysite.com/images/
How can this be done for a folder?
For instance, instead of doing this htaccess rule for the site root, can't I just put this .htaccess file inside a folder that's in the site? If I did, what would the rewrite rule look like? For instance, this code goes into the root. I would need it to go here: http://www.mysite.com/images/
Anthony Parsons said:RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(. \.)?mysite\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|bmp|png)$ http://i.imgur.com/qX4w7.gif [L]