Hello I have a similar problem that is eluding me,
I am trying to prevent direct access to a part of my website and only allow access via a link from another place on the website
its like this I want to prevent access to
http://mysite.com/gallery/
and be redirected to
http://mysite/forum/
then from the forum a linked button will take the user to the http://mysite.com/gallery/.
I have in my .htaccess the following but it does absolutely nothing, after many attempts and sometimes getting a 500 error im now pleading for some help
RewriteEngine on
RewriteCond %{HTTP_HOST} !http://mysite.com/gallery/$ [NC]
RewriteRule (.*){HTTP_HOST}http://mysite.com/forum/ [L,R]