Blog category

An elegant solution for missing web pages

February 15, 2008

Sooner or later somebody is going to try and access a page on your site that doesn’t exist. What will happen? Chances are the visitor will see a page saying something like ‘Error (404) Page Not Found’ with perhaps a bit of blurb promoting your web hosting company. The visitor will go somewhere else and that place may not be your site!

All visitors should be cherished. They should given every opportunity to reach and stay on your site. You don’t have to settle for that useless standardised error page. You can substitute it with something of your own that will gracefully get the visitor back on track.

Your custom error page should contain the following information:

All of which should be contained in your standard page framework so that the visitor immediately realises he/she has reached your site.

This is what my “Page Not Found” page looks like.

Now the techie bit. Once you have uploaded your custom page, you need to tell your web server to use it. If in doubt, get a suitably experienced technician to make these changes as a wrong step could cause serious problems accessing your site.

If your site is hosted on a Unix server, you need to add the following line lines to the .htaccess file:

ErrorDocument 404 /page_not_found.htm

where /page_not_found.htm is the path and name of your custom page.

If your site is hosted on a Microsoft IIS server, open your Internet Service Manager. The following steps may vary slightly depending on the version of IIS that you are using.

Finally, test it by going to an invalid address on your site. If all has gone to plan you should see your elegant custom error page.

Filed in: Usability

Comments

Post a comment

Name: (required)

Email:

URL:

Comment: (required)

Remember my personal information

Notify me of follow-up comments?

Help prevent spam, please enter the word you see below:

Return to Blog front page

At a glance

Who

Make the most of your website! I'm Eugene Mulligan, an IT practitioner with over 25 years’ experience of delivering solutions to businesses small and large. Egn Webcraft is my website development and search engine marketing operation based in Somerset. My aim is simple – make efficient, effective websites.

Find out more about Egn Webcraft.

How

Everything else is covered and explained here:
Home Blog About Contact Pricing Resources Bookstore Privacy Policy.

Egn Webcraft is a trading name of Egn Systems Limited. Copyright © 2008.

Wagtail House, Upton Lane, Seavington, Ilminster, Somerset TA19 0PZ     Tel: 0845 225 2888 or 01460 242023    enquiries@egnwebcraft.co.uk


Expression Engine content management systems