Continued from page 1
Another useful thing that you can do is call a special CGI routine at time error occurs. How do you do this? Instead of modifying .htaccess file to reference an HTML document, make it reference a CGI routine directly (perhaps with error code as a parameter). This routine can send an email to you (and perhaps even page you) when an error occurs. This allows you to quickly handle any errors on your web site.
Don't get too stressed out about 404 errors. Remember that no matter how well you keep up your site they will occur occasionally. Even if every single link inside your site is perfect, other people will type or code incorrect URLs, thus causing errors. Some search engines have bugs and reference pages incorrectly and sometimes web server itself returns bogus errors. The best script that I have found to perform this function is Error Robot, available at http://www.newmediaone.com/scripts/
Personally, I prefer using a CGI routine to send an email whenever a 404 error occurs instead of asking visitor to send an email. This removes burden for quality assurance from visitors and places it upon me, where it belongs.
What can you do to prevent or correct 404 errors?
- Check links within your site on a regular basis. Correct any references that are broken.
- If an external link, say from an article, is incorrect, you can create a redirect page to move visitor from incorrect reference to correct reference. This is generally a lot easier than attempting to get author to correct reference.
- Check each and every 404 error that occurs and take steps to correct them.
Additional Resources
http://www.internet-tips.net/Surfing/404errors.htm The Dreaded 404 error This article tells you meaning of dreaded 404 error
http://www.internet-tips.net/Webmaster/htaccess_errors.htm Htaccess file - Custom error pages You can use htaccess to define custom error pages to trap 404 and other error conditions.
http://www.internet-tips.net/Webmaster/maintlinkrot.htm Check your links regularly to prevent link rot Check your links regularly to prevent link rot.
Richard Lowe Jr. is the webmaster of Internet Tips And Secrets. This website includes over 1,000 free articles to improve your internet profits, enjoyment and knowledge. Web Site Address: http://www.internet-tips.net Weekly newsletter: http://www.internet-tips.net/joinlist.htm Daily Tips: mailto:internet-tips@GetResponse.com