How to create custom error pages in cPanel account?

How to create custom error pages in cPanel account?

How to create custom error pages in cPanel account?

To create custom pages you have to first login to your cPanel account and click on "Error Pages" under Advanced section. Select the domain or sub-domain from the list and then click one of the common error pages given to edit them. You can create your own custom page in HTML/SHTML code and after making changes click on "Save".

Now try to check your custom error pages. If you still getting default pages then refresh your window (ctrl + f5). If you are still seeing default pages then, kindly add this piece of code to your .htaccess file in your root folder.
--------
ErrorDocument 403 /403.html
ErrorDocument 404 /404.html
ErrorDocument 503 /503.html

--------
You can use your own pages so that whenever any visitors hits for a wrong address he will not get a 404 error page but a other page. You can use you home page for that.
--------
ErrorDocument 404 /index.html
--------

How to revert back the changes ?

You have to just delete the error pages from your root directory "public_html"
Author
bhawanisingh
Views
1,718
First release
Last update
Rating
0.00 star(s) 0 ratings
Top