If a page on your website doesn't load, an error message shall be shown to the visitor. As there are different errors, there are different pages that will appear, but what is typical for all of them is that they are generic and most likely will have practically nothing that resembles the layout of your Internet site, which may be aggravating for any website visitor. This is the primary reason why web hosting companies have introduced a feature named Custom Error Pages. For a variety of different errors, website visitors shall see your custom made content, which can be informative or amusing, based on your preference, and that will match the overall design and style of your site, so the pages won't look like they aren't part of your site at all. You could use this option for a number of errors - 400 (Bad request), 401 (Unauthorized), 403 (Forbidden) and 404 (File not Found).

Custom Error Pages in Web Hosting

If you buy a web hosting plan from us, you'll be able to set custom error pages for your sites easily, since this function is a part of all our packages. Once you have created the files and uploaded them to your web hosting account, you should check out the Hosted Domains section of your Hepsia CP and click on the Edit button for the particular domain or subdomain. Inside the pop-up that will appear, you will see drop-down options menus for all four kinds of errors and for each one of them you may choose an Apache default page, a generic page from our system or a custom made page. If you choose the 3rd option, you should only enter the URL to the file you have uploaded then save the change. A different way to set custom error pages is to set up an .htaccess file inside the domain or subdomain folder and to add a few lines of code in it. In case you don't have prior experience or if you're just unsure how to do this, you could just copy/paste the code from our Knowledge Base article on that topic.

Custom Error Pages in Semi-dedicated Servers

When you host your Internet sites in a semi-dedicated server account with our company, you could set custom made error pages for each of them effortlessly through our in-house made Hepsia hosting Control Panel. With just a few clicks in the Hosted Domains section, you could change the default setting from a system page to a custom one for each of the four error types. All you need to do is supply a link to every file which you have uploaded before that and then save the change. If required, you'll be able to revert this customization whenever you want and in exactly the same way. If you prefer, you could use an .htaccess file as well. It should be created/uploaded inside the domain or subdomain folder related to the website whose error pages you would like to modify and the content for this type of file can be found in our Help article on this matter.