How to create Custom Error pages?

Custom Error pages can be created via cPanel or through .htaccess file. Please follow the instructions below.

Create Custom Error pages via cPanel

Step 1. Log in to the cPanel.

cPanel-Login-SS

Step 2. Click on Error Pages under Advanced panel.

error-pages-cpanel

Step 3. Choose on the domain name you want to apply the error pages for.

Step 4. Click on what Error page you want to edit. You may choose on the suggested common error pages or check all the HTTP Error Status Codes to see the full list.

create-error-pages-cpanel

Step 5. Insert the html code in the space provided.

Example:

<html>
<body>

<h1>Bad Request</h1>

<p>insert custom error message here</p>

</body>
</html>

edit-error-pages

Step 6. Click on Save button to save the changes.

Create Custom Error pages using .htaccess file

 

Step 1. Open a notepad or any computer word editor. Use the sample codes below, save as .htaccess and upload into the directory where the domain name is currently pointed. Or if you already have a .htaccess file being used by the website, you may use the codes below.

You can add more of the custom error pages or just use the most common ones – depends on your needs. Please make sure that all files are uploaded in the correct directory.

Do not hesitate to contact our support team if you have further questions.

Custom Error pages

(Visited 25 times, 1 visits today)

Leave A Comment?