ustom 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:
Examples:
for custom 404 error page you should add:
1
|
ErrorDocument404/~cpanel_username/404.shtml
|
for custom 500 error page you should add:
1
|
ErrorDocument500/~cpanel_username/500.shtml
|
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.
cPanel is easy to work with when you have the right host to support you. If you need a reliable partner to help you manage your website with cPanel, check out our cPanel hosting services!