How do I create a custom error page (404/500)? Print

  • 0

You can show your own friendly page when visitors hit an error:

Easy way (cPanel):

  1. Log in to cPanel and open Error Pages under Advanced.
  2. Choose your domain, then pick the error code, such as 404 (Not Found) or 500 (Internal Server Error).
  3. Enter your HTML in the editor and click Save.

Manual way (.htaccess): create your page files (e.g. 404.html) in public_html and add to .htaccess:

  • ErrorDocument 404 /404.html
  • ErrorDocument 500 /500.html

Test by visiting a non-existent URL like yourdomain.com/doesnotexist. Keep error pages lightweight and include a link back to your homepage. If a custom 500 page does not show, there may be a deeper server error - check your logs or open a ticket.


Was this answer helpful?

« Back