How to Create Custom Error Pages in cPanel

Whenever visitors to your web site experience an error, they see an error page. This article describes how to use cPanel to create custom error pages for your web site.


CREATING A CUSTOM ERROR PAGE

Visitors to your web site see an error page whenever an error occurs. For example, if users enter an incorrect URL or are not authorized to access specific directories, they see an error page. Companies often customize error pages by branding them with a corporate image and a link to their home page.

Note: Custom error pages are optional. An error page is always displayed, whether a custom error page exists or not. If an error page has not been customized, Apache displays a default error page.


 To create or modify a custom error page, follow these steps:

  1. In the Advanced section of the cPanel home screen, click Error Pages.
  2. Click the error page that you want to customize.
  3. Type the HTML that you want to use in the error page. You can use the buttons at the top of the page to insert variables into your code for dynamic content.

For example, the following HTML code demonstrates how to use a variable in a custom error page:

<h1>404 Not Found</h1>

<p>The requested page, <!--#echo var="REQUEST_URI" -->, is not available.</p>Click Save.


      4. Click Save.



  • cpanel, custom error pages
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How do I access my CPanel

Every Inspedium Web Hosting Plan comes with CPanel as the hosting control panel. You can access...

How do I update my contact information in CPanel?

To update your contact information in cPanel, you can use the Update Contact Information feature...

How do I change the language of my CPanel?

You can use the Change Language feature to change the default display language of your CPanel...

How to Log in and Log out of cPanel

This article describes how to log in and log out of cPanel. LOGGING IN TO CPANEL To log in to...

Getting familiar with the cPanel Home Screen

This article is an introduction to the cPanel home screen, which is the place to start for...

Powered by WHMCompleteSolution