Forum Moderators: open
I have a question but since I don't speak english very well I will start with an example so you can understant me easily...
Imagine you search in Google for something and you find a page named somepage.php located at somesite.com, you click the search engine link to open that page, somepage.php, but instead of that you are redirected to the index of somesite.com, there, in the index or in any other page of the site you find a link to somepage.php and if you click that link this time you can see the page. What I mean is that you can't access a page if you don't go to the index first...
How can I do this? I know there is a script allready done, I saw it some time ago, but I can't find it now! I've been searching in Google and some scripts directories so I hope you know where it is or how can I do this!
Thanks in advance for your time!
I can think of 2 ways of going this! The first way is done at the server side, using a redirect.
However, you can do this on the client side by looking at the history and if the last page in the history is not from your site then you redirect them.
You will need to use some string manipulation to get the domain name corrent but it is possible...
HTH