So, I created a news/.htaccess file with an 'ErrorDocument' entry to redirect all '404' server errors (file not found) to puppylinux.com/news/index.html
To test, go to this randomURL:
The thing is though, will search engines then know the the invalid URL is in fact invalid, and stop using it?
I've done the same for the 'blog' directory. This directory used to have a WordPress blog in it when I was hosted on servage, so there could be invalid page accesses in here too. In this case the redirection is to my new blog front page.
Comments:Posted on 13 Apr 2008, 7:19 by hairywill
issue a 301 using htaccess
In this situation you should serve an http 301 error message that tells the user agent where the page has been permanently been moved to. This link contains instructions on how to do this using htaccess. I cannot vouch for its accuracy as it is not something I have ever tried.