[Home]   i n s t r u c t i o n s
< back to index       Custom Error Pages
 
i n f o
   about us
   technical
   payment
   contact

s e r v i c e s
   packages
   server
   design
   sign up

s u p p o r t
   instructions
   F.A.Q.
   password

m i s c
   resellers
   offers
   free

h o m e

 

Custom error pages can give a more professional, complete feel to your site. They can also let your visitors know who to contact if there is a problem such as a broken link.

To configure your own error pages, add the following lines to your .htaccess file in your "www" directory:

 
ErrorDocument 401 /401.html 
ErrorDocument 403 /403.html 
ErrorDocument 404 /404.html 
ErrorDocument 500 /500.html 

Then, upload your 401.html, 403.html, 404.html, and 500.html into your "www" directory. These pages should all have the following code somewhere between the <head> and </head> tags (to prevent search engines from indexing these pages):

<meta name="robots" content="noindex,nofollow">

Once this is done, whenever there is a 401, 403, 404, or 500 error, the visitor will see your own error document instead of the server's default error message.

The most common error conditions:
400 Bad Request (unrecognized command. usually GET or POST)
401 Unauthorized (incorrect username/password)
403 Forbidden (no permission to access)
404 Not Found (does not exist)
405 Method Not Allowed (trying to POST to a html file, etc.)
500 Internal Server Error (CGI script not working properly)

 

 
TOPICS
getting started
domain registration | mail forwarding | checking mail | uploading your site
basic features
web stats | hit counters | form-to-mail cgi | redirect cgi | autoresponders |
basic mailing lists | advanced mailing lists | search engine submission | frontpage extensions | password protected directory | custom error pages | subdomains
advanced features
cgi scripts | server-side includes | php | mysql |

 
All your hosting dreams come true!
P R O F E S S I O N A L
hkhosting.com
W E B   S E R V I C E S

Copyright © 1999-2003 HK Hosting Ltd. All rights reserved. Terms & Conditions