Hi,
I recently changed some pages from shtml to php. Google is still indexing the previous shtml files so I’m redirecting the relevant pages.
To redirect people to the new pages I’m using htaccess file with the following kind of thing:
...
Redirect 301 /home.shtml http://www.somedomain.com/home.php
Redirect 301 /index.shtml http://www.somedomain.com/index.php
...
Where index.php is a sort of landing page.
This works fine but there are 2 (linked) problems:
-
I noticed that when a user goes to www.somedomain.com it redirects to www.somedomain.com/index.php. While this still gets people to the right page, I would prefer it if the URL remained without the /index.php appended, as this shows up in search engines and also in the browser. So it’s not a huge problem, but one that I’d like to avoid.
-
So to avoid the first problem I just removed the rule for index.php. However, now when you point a browser to www.somedomain.com it redirects to /home.php!! It seems like the redirect rule for index is being hi-jacked by the home rule!
Is this strange, or am I missing something here?!
Any help much appreciated!!