How to add custom error pages?

Custom error pages can be created from cPanel -> Error pages. An editor is available for every error status inside the tool where you can place the code of your error page

Once created you should also create an .htaccess file in the public_html directory containing the rewrite rules related to the error page:


for custom 404 error page you should add:

for custom 500 error page you should add:

If you already have an .htaccess file please just add the corresponding lines inside by editing the file through cPanel -> File Manager or using external text editor locally on your computer.

You find this article useful? Click here to learn more about SiteGround web hosting experts and what else we can do for you!