I have a subfolder with restricted content. I only want images in that subfolder to show in the restricted content subforum whose address is mysite.com/forum/f21. How can I do this with .htaccess? Vbseo changes the subforum names.
I tried putting the htaccess in the restricted content subfolder but it's not working. Any ideas? Antihotlink works on other domains but I also want the pictures to only be visible when the user is viewing a thread in mysite.com/forum/f21 as opposed to mysite.com/forum/f1 (public forum)
The restricted content subfolder htaccess has:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?mysite.com/forum/f21/ [NC]
RewriteRule \.(jpg|jpeg|png|gif|pdf)$ mysite.com/antihotlinkpicture.png [NC,R,L]
The root folder htacccess has
Options -MultiViews
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteBase /
RewriteRule ^link([^/]*).html$ rewrite.php?link=$1 [L]
bunch of 301 redirects, working fine. Any ideas?


LinkBack URL
About LinkBacks





Reply With Quote