When a page on your website doesn't load, an error message shall be shown to the site visitor. Because there are different errors, there are different pages that will display, but what is standard for all of them is that they are generic and most likely shall have absolutely nothing in common with the design of your Internet site, which could be frustrating for any visitor. This is the reason why website hosting companies have introduced a feature referred to as Custom Error Pages. For a wide variety of different errors, website visitors will see your unique content, which may be informative or funny, based on your personal preference, and which will match the layout of your site, so the pages won't seem like they are not part of your Internet site at all. You could use this option for many errors - 400 (Bad request), 401 (Unauthorized), 403 (Forbidden) and 404 (File not Found).

Custom Error Pages in Shared Web Hosting

If you acquire a shared web hosting service from our company, you'll be able to set customized error pages for your sites easily, because this function is part of all our plans. Once you have created the files and uploaded them to your web hosting account, you can go to the Hosted Domains section of your Hepsia CP and click on the Edit button for the specific domain or subdomain. In the pop-up which will be displayed, you will see drop-down options menus for all 4 types of errors and for each of them you may choose an Apache default page, a generic page from our system or a custom page. Should you select the third option, you should simply input the URL to the file that you have uploaded and save the change. A different way to set personalized error pages is to set up an .htaccess file inside the domain or subdomain folder and to add several lines of code in it. In case you don't have preceding experience or if you're just uncertain how to do that, you can simply copy/paste the code from our Knowledge Base article on that matter.

Custom Error Pages in Semi-dedicated Servers

Adding your pages for each of the 4 error types to any Internet site hosted in a semi-dedicated server account with us will be very simple and shall not take more than a few clicks. When you upload the files inside your account, you could go to the Hosted Domains section of your Hepsia CP and edit the domains and subdomains listed there via an intuitive interface with drop-down navigation. You can select what page should appear for every error type. The choices are a default Apache server page or a page from our system, and customized pages. Should you choose the aforementioned option, you will need to input the link to every single page in your account, then save the change. The link or the type of page that shows up when a user encounters an error can be changed anytime. If you are more experienced, you may use an .htaccess file to set custom made error pages as well, as opposed to using our integrated generator tool, and in case you choose this option, the file has to be placed in the root directory of a given domain or subdomain.