I changed my pages on my site from html to php and the search engines are still holding onto the html pages.
I tried the following code in an .htaccess and it works great.
RedirectMatch (.*)\.html$ $1.php
However, I need to exclude my stats directory.
RedirectMatch (.*!/stats)\.html$ $1.php
Would this work?
Thanks
Using RedirectMatch for html to php conversion.
Moderator: General Moderators
- mydimension
- Moderator
- Posts: 531
- Joined: Tue Apr 23, 2002 6:00 pm
- Location: Lowell, MA USA
- Contact:
if you want to restrict access to that part from search engines only then have a read of this: http://www.google.com/webmasters/3.html#B3