How do I customize error messages for my site?

Creating Custom Error Pages

 

You can replace the default server error pages with your own custom-branded pages so visitors see a helpful, professional message instead of a generic error.

 

Method 1: Through cPanel

  1. Log into cPanel
  2. In the Advanced section, click Error Pages
  3. Select the domain
  4. Click on the error code you want to customize (404, 500, 403, etc.)
  5. Edit the HTML content and save

 

Method 2: Through .htaccess

Create your custom error page HTML files (e.g., 404.html, 500.html) in your public_html folder, then add these lines to your .htaccess file:

ErrorDocument 404 /404.html
ErrorDocument 500 /500.html
ErrorDocument 403 /403.html

 

Tips for Good Error Pages

  • Include your site navigation so visitors can find their way back
  • Add a search box if your site has one
  • Link to your homepage and popular pages
  • Keep the tone friendly and helpful
  • Make sure the page returns the correct HTTP status code (cPanel handles this automatically, but if using .htaccess, the ErrorDocument directive takes care of it)
  • 561 Users Found This Useful

Was this answer helpful?

Related Articles

Is there a daily transfer or download limit?

Daily Transfer and Download Limits   No, there is no daily transfer or download limit on our...

WordPress Error : Sorry, this file type is not permitted for security reasons

.svg and .xap files can result in the error "Sorry, this file type is not permitted for security...

I uploaded my site but I can not see it, why?

Uploaded My Website But It Is Not Showing   If you have uploaded your website files but your...

My site was hacked

This typically occurs when you are running a script/app on your website which is out-dated and...

99% Uptime Guarantee? What happens if you are not up 99%?

Our Uptime Guarantee is very simple. We guarantee that your web site will experience 99% or...



Save 30% on web hosting - Use coupon code Hosting30