Then, we will present you tips on how to add a .htaccess rule, so your customized error pages will load when wanted. In the above page, we have displayed the response error code 404 along with the message saying that the page is not available. We have additionally instructed the user to click the link to our residence page to proceed further.

Tips On How To Create Customized Error Pages In Cpanel

Helpful Links

  • CPanel Devoted Server – Web Site directors have to research well so as to know the proper sorts of servers are available out there.
  • All you have to do is add this code into your .htaccess file and save it!
  • To create your individual customized error web page, create an net file (TXT, HTML, PHP, etc) along with your customized message the place your .htaccess file points to!
  • Centralized logging helps track errors like 404s and 5xx.
  • You can use these steps to configure custom pages for different error codes corresponding to 500, 502, 403, and so on.
  • An overview of an important HTTP status codes can be present in another of our articles.

The first line which starts with the hash sign (#) is a feedback line. These are the directives for Apache to serve error documents in case something goes wrong. Subsequently, Apache ought to display 400.html, 403.html, 404.html or 500.html if it encounters the four hundred, 403, 404 or 500 error respectively. Strive error 301 moved permanently to access one thing, which doesn’t exist, and you should have a custom error page as an alternative of the default one.

Create A Custom Error Page In Cpanel

So it is not user-friendly and makes the guests suppose that there is something wrong along with your website. This spoils their consumer expertise and forces them to depart abruptly. It additionally affects search engine rankings since these URLs return a web page with skinny content. Subsequently, it is strongly recommended to design your own custom 404 page that may be displayed in case of 404 error responses. Any hosting firm price its salt will allow you to create customized error pages. In fact, most hosting packages have a “custom error pages configuration” characteristic positioned underneath the management panel by way of which you can quickly create the pages.

If the custom error page is in your main domain, the file might be in the root listing, or public_html. We’re using the cPanel file editor for this tutorial. Right-click the file name and click the “Delete” link. Create custom error file error404.html using textual content editor such as vi editor, or a page builder like Squarespace, WordPress, or Wix.