Custom Error Pages

You can customize your own error pages (for example when a file is not found) instead of using cPanel standard error pages or not having an error page.

You can use custom error pages for any error as long as you know its number (like 404 for page not found) by adding the following to your .htaccess file:

Error pages inform visitors about problems when they attempt to access your site. Each problem has its own status code (for example, 404) and error page.

The web server automatically provides basic error pages, but the Error Pages interface allows you to define custom error pages for any HTTP status code.
These are some of the most common error pages:
401 - Authorization Required
400 - Bad request
403 - Forbidden
500 - Internal Server Error
404 - Wrong page

Login to your cPanel account

Click the 
Error Pages button, in the Advanced section of cPanel

If you have multiple domains in your cPanel, select it from the 
Managing menu.

You will see a list of Common Error Codes, click the one you want to create a custom error page for. The available choices are 400 (Bad request)401 (Authorization required)403 (Forbidden)404 (Not found), and 500 (Internal server error). To edit additional error codes, click the Show All HTTP Error Status Codestab.

You will then be on an editor page. You can enter HTML code here, or insert premade tags if you want. Below is a brief description of the available tags.

TagDescription
Referring URL Lists the URL you came from.
Visitor's IP address Lists the IP address of your site visitor.
Requested URL Shows the URL you are attempting to access
Server Name Shows the name of the server.
Visitor's Browser Lists the visitor's browser type.
Redirect Status Code This will display the error message code, such as 500, or 404, etc.

Click the Save button at the bottom when you are finished.

  • custom, error, pages
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What is my absolute path?

Your absolute path is the same as what we refer to as the ""path to public_html"". It is...

How do I set a my own default index file when browsing to a directory?

To do this, create a file called "".htaccess"" in the directory with the following...

What is the difference between the www and public_html?

There is no difference between the two. The actual directory that you place your web files in is...

Setting folders to 0777 (i.e. world writable folders)

Since we run SuPHP setting permissions to 0777 is not possible. A 0777 permission makes the...

Create a .htaccess file

You can create a .htaccess file on your local computer or on the server. On your computer:...

Powered by WHMCompleteSolution