How To Create Custom Error Pages Using cPanel
March 21st, 2017 | by Ravi Chahar || Leave a comment |
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.
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.
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.
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.
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.
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.