How can I prevent hotlinking only on some of the directories?
I'd like to let people hotlink all files, except all jpg images on
/path/dir1/dir2/ and on any of it's subdirectories, such as
/path/dir1/dir2/dir3/ and so on, should turn to
http://www.domain.com/dir1/hotlink/dontsteal.jpg
There are many of those subdirs on different depths, so I can't just write every dir on their own line.
This is a some kind of start, but does not work at all:
Code:
RewriteRule /path/dir1/dir2/(.+)\.(jpg) http://www.domain.com/dir1/hotlink/dontsteal.jpg
Cheers, <db>