This is probably a really stupid question, but I am in the midst of redesigning my site and am renaming from shtml to php3, the search engines have my pages as shtml (actually they still have some html) how do I keep visitors from hitting the 404 page everytime they click on a link from the search engine? I have ALOT of pages, making a META redirect for each page seems a daunting task, is there an easier way?
If you know PHP you can easily build a page that to replace your 404 error. What this page would do is remove the extension, add .php3 and redirect the user to that page. If the page has a php3 extension and its still not found you can display a 404 error similar to Sitepoint.com's
( www.sitepoint.com/missingpage.html ).
This would take a knowledge of PHP though, which I currently lack at this time.
Logic would be:
<BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
if extension not equal to php3
find '.' in URL string.
remove everything to the right of the '.'
display 404 error message with feedback form.