Continued from page 1
http://www.tamingthebeast.net/educat/ errcode.htm
Creating custom error pages:
-You may want to check with your hosting service first before creating custom error pages as certain hosting configurations may not allow you to create custom error pages.
-first design and publish
pages to your web space. You'll only really need to design a couple for
more common errors, for file not found (404) or unauthorised/forbidden (403, 401). Your custom error pages should have a brief summary of what went wrong and an encouragement for
visitor to try again or explore a different area of
site. The best custom error pages are those that match
site's other pages in navigation and layout.
-After publishing
pages, you'll need to edit
.htaccess file in
root directory of your server based web (not your local copy) . Use
Edit utility (set to ASCII transfer mode) in your FTP program to view
file. The .htaccess file contains a number of settings to control who can access
contents of a specific directory and how much access they have. It can also be used to create a "URL Redirect".
-If you have a FrontPage based web, be especially careful, as
.htaccess file contains other settings as well.
-If you don't find a .htaccess file, you can create your own, but once again, check with your hosting service first.
-Add
following lines to
end of
file (examples provided as a guideline alter path and file names to point towards your error pages)
ErrorDocument 404 http://blah/blah/404.htm ErrorDocument 403 http://blah/blah/403.htm ErrorDocument 401 http://blah/blah/401.htm
Custom error pages are simple to produce, help you to increase your site traffic and encourage better visitor/customer relations.
Michael Bloch michael@tamingthebeast.net http://www.tamingthebeast.net Tutorials, web content and tools, software and community. Web Marketing, eCommerce & Development solutions. ____________________________
Copyright information....If you wish to reproduce this article, please acknowledge "Taming
Beast" by including a hyperlink reference to
website (http://www.tamingthebeast.net) & send me an email letting me know. The article must be reproduced in it's entirety & this copyright statement must be included. Thanks. Visit www.tamingthebeast.net to view other great articles FREE for reproduction!

Michael is an Australian Information Technologies trainer and web developer. Many other free web design, ecommerce development and Internet articles, tutorials, tools and resources are available from his award winning site; Taming the Beast.net (http://www.tamingthebeast.net)