How do I set up custom 404 or 500 error pages?

This article covers two ways to set up 404/500 error pages, but there are many additional methods available. 

1) Create a .htaccess file within your public_html directory, containing the following two lines: 

ErrorDocument 404 "/404.html" 
ErrorDocument 500 "/500.html" 



These directives send 404 and 500 errors to corresponding .html pages within your webspace. You will need to manually create the .html pages, and configure them to suit your requirements. 

2) Within your eXtend control panel, select "404/500 Error Page" from the 'CGI Scripts" section and install to a directory of your choosing. This will set up the .htaccess file and .html error pages for you. Errors are instead sent to a cgi script, which in turn redirects users to the corresponding htmlerror page.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Do you support SSI (Server Side Includes)?

Yes we do. SSI (Server Side Includes) are tags that are placed in HTML pages, and evaluated on...

How can I change the file name extension of my index page?

It is possible to name your default index page something other than index.html, index.cgi,...

How can I enable directory indexing

If you want to see a list of files in a directory when viewing it in a browser rather than a web...

How can I force a particular charset? (Character Encoding)

You are able to set a default value for the media type charset parameter (the name of a character...

How do I edit php.ini (PHP settings) for my hosting package?

Becuase of the way in which we run PHP, you are able to customise its behaviour with php.ini...