Using RedirectMatch for html to php conversion.
Posted: Tue Jan 07, 2003 11:37 am
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
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