bspacer1 bspacer2
webmail hosting forum clients about

Computer Co-op, CornerNET Internet Gateway, and PJR Solutions is owned by PJR Sales & Service. Quality products and online services since 1991. We can be your
Complete Computer Connection

Hosting @ $5.95

Domains @ $16.98
Home PagePortal HomeClient AreaAnnouncementsKnowledgebaseSupport TicketsDownloadsRegister

Knowledgebase
You are here: Portal Home > Knowledgebase > cPanel Related Issues > cPanel common questions and problems > Custom error pages do not work

Custom error pages do not work

In case you have problems with the custom error page for 404 or 500 errors you should create a .htaccess file in the public_html directory containing one of the lines below. If you already have a .htaccess file you should add these lines:

For custom 404 error page:

ErrorDocument 404 /~cpanel_username/404.shtml

For custom 500 error page:

ErrorDocument 500 /~cpanel_username/500.shtml

The other option is to use different file names for your error pages. For example:

For custom 404 error page:

ErrorDocument 404 /4004.shtml

For custom 500 error page:

ErrorDocument 500 /5000.shtml

The above directives will apply recursively to all subdirectories as well.



Was this answer helpful?

Add to Favourites
Print this Article

Also Read
PHP and HTML redirects (Views: 8474)
When I select Site Software from cPanel I get a message that says "No cPAddons configuration found. Please contact your host and ask that they configure cPAddons." (Views: 11691)
I am having problems with my cronjob and/or it is not working (Views: 3785)
My redirection set from cPanel shows an error (Views: 1924)
Can I have more than one login for my cPanel? (Views: 2960)

Powered by WHMCompleteSolution


Copyright © 1994-2021 PJR Sales and Service All Rights Reserved