I've been trying to find a way to redirect my users from my subpages to my index page when accessing the pages from e.g. google.
For example, I only want www.mydomain.com/folder/somefile.htm to be accessible from www.mydomain.com. And when users are clicking on www.mydomain.com/folder/file.htm in the Google result list I want them to be redirected to www.mydomain.com/index.php.
Would appreciate any help with this.