How to create custom error pages in cpanel

A custom error page is a webpage that is displayed to users when they encounter an error while browsing a website. These errors can include 404 Page Not Found, 500 Internal Server Error, and others. Instead of displaying a generic error message, a custom error page allows website owners to design and personalize the error page with their own branding, messaging, and potentially offer helpful information or alternative navigation options to the user. Custom error pages can help improve the user experience and provide a more professional and cohesive look and feel to a website.

Why use custom error page in cpanel

There are several reasons why you might want to use a custom error page in cPanel:

1. Branding: Using a custom error page allows you to maintain a consistent branding and design throughout your website, even when an error occurs. This helps in creating a professional and cohesive user experience.

2. User experience: Standard error pages provided by cPanel can be generic and unhelpful to users. By creating a custom error page, you can provide more relevant and informative content to guide users and help them find what they are looking for.

3. SEO: Custom error pages can be optimized for search engines, which can help improve your website’s overall search engine optimization. By including relevant keywords and links to other pages on your website, you can increase

Create a custom error pages in cpanel

To create a custom error page on cPanel, you can follow these steps:

1. Log in to cPanel using your login credentials.

2. In the “Advanced” section, look for the “Error Pages” icon and click on it.

 

3. choose the domain name using the error drop down if you have multiple domain names.

4. On the “Error Pages” page, you will see a list of different error codes such as 400, 401, 403, etc.

5. Click on the error code for which you want to create a custom error page.

6. You will have three options to choose from:

– Show a default page: This option will display the default error page provided by the server.

– Show a short plain-text message: This option allows you to enter a simple text

Add the page code to match your site include all the header information and body tag. Basically you want to enter what will be a blank page for your website.

Select a tag to insert section.

Since we are creating a “file not found” page we will use “Requested URL” variable to show the broken link URL on the error page.

Place your cursor inside the tags and click a tag link to insert the variable code

Scroll down to save.

Now if you enters an incorrect url on the website it will display the custom error page.

Custom error pages are important for several reasons:

1. User experience: When a user encounters an error on a website, such as a 404 page not found error, a custom error page

can make the experience more user-friendly. It can provide clear and concise information about the error and offer suggestions or links to help the user navigate back to the desired content. This can help prevent frustration and improve the overall user experience.

2. Branding and consistency: Custom error pages present an opportunity to reinforce your brand identity and maintain consistency throughout your website. By incorporating your logo, colors, and design elements into the error page, you can create a seamless and cohesive experience for users, even in the event of an error.