How do I customise error messages for my web site?

The easiest way to put in your OWN error pages is as follows:

Create a htaccess.txt file similar to this one. Upload it to your /var/www/html directory (same as mainwebsite_html) and rename it to .htaccess

In the file are lines like:
ErrorDocument 401 /errors/401.htm
ErrorDocument 403 /errors/403.htm
ErrorDocument 404 /errors/404.htm
ErrorDocument 500 /errors/405.htm


Where /errors/404.htm is the file location and name of the file to show when the 404 error occurs and so on.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

I do not have a web page yet, how do I make one?

There are numerous web page authoring programs available. For example, Microsoft FrontPage 2002,...

Can Red Rook design a web page and get my web site up?

Most definitely. Red Rook has numerous web page design resources at its disposal. Red Rook can...

My web page is not showing what I expect. Are the server settings correct?

Any html code or Javascript is always processed on the Client side, so the server will have no...

I'm having trouble with javascript.

More information coming soon. Please visit Red Rook Web Hosting Technical Support and lodge a...

I am programming in Perl and having some problems.

More information coming soon. Please visit Red Rook Web Hosting Technical Support and lodge a...