a public resource for all things web hosting, systems administration, and dedicated server management.

Custom Error Messages

The .htaccess file can be used to generate customised error pages.

To setup a customised error message in the event that a visitor requests a file from your website that does not exist or has been removed, you need to add the following line to the .htaccess file:

Where 'notfound.html' is the file that is displayed containing the error message. This file should be placed in the public_html directory.


Did did you find this article useful? Then See also articles on: Web hosting support, dedicated server administration and useful hosting tools