How To Create Custom Error Pages Using cPanel

create custom error pages

There are many errors in WordPress which can annoy your readers.

Whenever they visit your website and see the default error page, that wouldn’t be a good user experience. Have you ever tried to customize those pages?

Yes, you can create custom error pages for your WordPress website. Most of the users don’t really focus on these small things but it can affect your business.

In this tutorial, you will learn the easiest method to edit the error pages of your website.

What Should You Do To Customize Any of The Error Pages?

For each error, there is a particular page which consists the structure of the page.

By default, for every error like 404 error, 500 internal server error, 403 forbidden error etc there is an error page.

If you want to know about the pages then check your website directory.

Take a few steps to generate these error pages.

Step 1:- Login to your cPanel of your web hosting.

Step 2:- Under the “Advanced” section, click on the “Error Pages” option and a screen will open in front of you.

error pages

Step 3:- You have to choose your domain name and will see the list of all the errors. Now select the error number to customize its page.

create custom error pages

Step 4:- By default, there are many options to include the markup in the page. You have to click on the buttons and the markup will get added in the page.

custom error pages

But if you want to edit it according to your choice then use HTML markup and generate a better error page.

After completion, save the data.

Step 5:- Now is the time to register this page. For which, you have to edit the .htaccess file.

Just find it in the root directory of your website and open it to edit.

Include the code according to the error number.

ErrorDocument 403/403.shtml

The above-mentioned code is used for the 403 forbidden error page.

If you want to change it for 500 internal server error then replace the numbers.

ErrorDocument 500/500.shtml

The same process goes for all the error pages. You can edit any.

Now whenever your users see an error page, they will see these custom pages.

Are You Ready To Customize All The Error Pages for Your Website?

It’s the matter of choice. Some people do it and some don’t.

If you have decided to create custom error pages then go for it. Feel free to add anything using the HTML language.

Don’t try anything extra if you don’t have any idea about HTML coding. You can use the default markups mentioned in the form of buttons.

If you still face any problem, feel free to ask.

You can also connect with us on Twitter, LinkedIn, and Facebook.

by Ravi Chahar

A WordPress Professional and the LinkedIn Influencer. A coder by passion and a blogger by choice. WordPress theme development is his forte. He is your WordPress guy who will teach you how to solve WordPress errors, WordPress security issues, design issues and what not.

Get Free Updates Into Your Inbox

Learn Everything Just Like I Did


Leave a Reply

Your email address will not be published. Required fields are marked *