instructions to users

support/ change password | F.A.Q. | glossary
about us
technical specs
payment methods
contact us
hosting packages
server hosting
sign up
special offers
domain availability
jump to another section

custom error pages

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)

Copyright © 2023homeWhat Next Limited. All rights reserved. Quality Hong Kong web hosting. | Feedback | Terms & Conditions