Using RedirectMatch for html to php conversion.

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
jschner
Forum Newbie
Posts: 6
Joined: Mon Oct 07, 2002 11:52 am

Using RedirectMatch for html to php conversion.

Post 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
User avatar
mydimension
Moderator
Posts: 531
Joined: Tue Apr 23, 2002 6:00 pm
Location: Lowell, MA USA
Contact:

Post 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
Post Reply