Page 1 of 1

Using RedirectMatch for html to php conversion.

Posted: Tue Jan 07, 2003 11:37 am
by jschner
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

Posted: Tue Jan 07, 2003 2:53 pm
by mydimension
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