[WBX2.10] How do I set up 404/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 Hosting cPanel v7.5 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 html error page.

Was this answer helpful?

 Print this Article

Also Read

[WBX2.02] How do I access the error logs for my hosting package?

The raw access and error logs are kept in the 'logs' directory of your site. You can download...

[WBX2.06] Do your servers support Flash?

Yes, all accounts support the use of Flash on the Web Site. Although Flash is compatible with our...

[WBX2.08] What is SSCN and do you support it?

SSCN stands for Set Secured Client Negotiation and is a method of site to site data transfer. As...

[WBX2.01] I would like to be able to see a breakdown of countries in my Webalizer statistics.

It is possible to get a breakdown of countries in your Webalizer statistics but it is not enabled...

[WBX2.07] Where is the dictionary directory?

On the web servers, there is a dictionary file called "words" in the directory /usr/share/dict.