Hi, I am looking for some htaccess lines, this is what I want to do:
it would usually 404 because I only have page1.php. The extensions don't match..
The obvious answer is 301 redirect page1.shtml to page1.php But the problem is I have over 18,000 pages that need to be done..
So I would like to add a line in htaccess that says: If no match, try replacing the extension with .php BEFORE 404-ing...
I already have a 404 script that does this- it will forward people to the new php page- BUT it would be much better for search spiders if it redirected to a .PHP extension BEFORE it 404's/