Force visitors to go through index page?
Posted: Fri Feb 27, 2004 8:34 am
What I want to do is force any visitor to go through my index.html page. If they happened to visit one of my subdomains, or browsed into a different directory, even though I set it up that way, I want them to be forced to go through the index.html page first. Let me explain this another way:
I have a directory in my htdocs folder called "chatroom", people can easily bookmark this and have direct access to this folder.
I want to "force" every visitor who tries to go to a subdirectory directly, to automatically be forced back to my main index.html page first, where they would find a menu to choose from where they want to go.
I guess this is kind of a anti-bookmark code in a way.
I already understand and use .htaccess file in my main directory under htdocs, and also have a .htpasswd file under the root, before htdocs.
If anyone understands what it is that I am asking, I would appreciate the help.
Oh yeah, if your gonna tell me it's not a good idea, or it might drive visitors away, blah blah blah. Dont waste your time. I need answers, not opinions.
Thanks.
I have a directory in my htdocs folder called "chatroom", people can easily bookmark this and have direct access to this folder.
I want to "force" every visitor who tries to go to a subdirectory directly, to automatically be forced back to my main index.html page first, where they would find a menu to choose from where they want to go.
I guess this is kind of a anti-bookmark code in a way.
I already understand and use .htaccess file in my main directory under htdocs, and also have a .htpasswd file under the root, before htdocs.
If anyone understands what it is that I am asking, I would appreciate the help.
Oh yeah, if your gonna tell me it's not a good idea, or it might drive visitors away, blah blah blah. Dont waste your time. I need answers, not opinions.
Thanks.