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:

  • ErrorDocument 404

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