Each time a page on your Internet site doesn't load, an error message will be shown to the site visitor. Since there are different errors, there are different pages that'll display, but what is standard for all of them is that they're generic and most likely shall have practically nothing in common with the design of your Internet site, which could be frustrating for any site visitor. This is the reason why web hosting service providers have introduced a function known as Custom Error Pages. For a wide variety of different errors, website visitors shall see your unique content, which may be informative or witty, in accordance with your taste, and which shall match the overall design of your website, so the pages won't seem like they aren't part of your website at all. You may use this option for numerous errors - 400 (Bad request), 401 (Unauthorized), 403 (Forbidden) and 404 (File not Found).
Custom Error Pages in Hosting
When you purchase a hosting from us, you shall be able to set custom made error pages for your sites quickly and easily, because this function is part of all of our solutions. As soon as you have created the files and uploaded them to your website 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. Inside the pop-up which will show up, you'll see drop-down options menus for all four kinds of errors and for each of them you could choose an Apache default page, a generic page from our system or a custom made page. In case you pick the 3rd option, you should only enter the URL to the file that you've uploaded then save the change. Another way to set custom made error pages is to set up an .htaccess file in the domain or subdomain folder and to add a couple of lines of code in it. If you don't have preceding experience or if you're simply not sure how to do that, you may just copy and paste the code from our Knowledge Base article on that topic.
Custom Error Pages in Semi-dedicated Hosting
If you host your websites in a semi-dedicated server account with us, you'll be able to set custom made error pages for each of them easily using our custom Hepsia hosting Control Panel. With only a few clicks inside the Hosted Domains section, you are able to edit the default setting from a system page to a personalized one for each of the 4 error types. All you must do is supply a link to each file that you've uploaded before that and then save the change. If needed, you shall be able to revert this modification at any time and in exactly the same way. If you prefer, you can use an .htaccess file as well. It should be created/uploaded inside the domain or subdomain folder related to the site whose error pages you want to change and the content for this sort of file can be found in our Help article about this matter.