Website Errors

Filed under: Internet,Website; Author: Les Bain; Posted: January 6, 2008 at 11:31 pm;

Part of doing a well crafted website is doing error processing. When someone keys in an invalid webpage name for example, a 404 error is returned.

It is considered good practice to replace the system generated error message with a tailored error message that matches the rest of your website. There is a cottage industry around the 404 error, and there are websites with examples of all the creative things that people have done with 404 errors. See 404 Research Lab.

It can a little unwieldy to do lots of error message programs, so I refined my process today. My website is on a LAMP (Linux, Apache, MySQL & PHP) environment.

The process now has two parts

The htaccess file with a set of Error Commands –
ErrorDocument 404 /error-page.php?404

The error-page.php program itself that captures the error code and generates the message.

I like the approach because it is all contained in two places.

This is the description.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

If you want to leave a feedback to this post or to some other user´s comment, simply fill out the form below. Just in case you know some HTML, you may use the following tags to format your text:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)