When a page on your Internet site does not load, an error message will be shown to the site visitor. As there are different errors, there are different pages that'll display, but what is typical for all of them is that they're generic and in all probability shall have nothing that is similar to the layout of your site, which can be aggravating for any website visitor. This is the main reason why website hosting service providers have introduced a function named Custom Error Pages. For a range of different errors, visitors shall see your custom made content, which may be informative or funny, in accordance with your choice, and that will match the layout of your site, so the pages will not appear as if they're not part of your Internet site at all. You may use this option for a number of errors - 400 (Bad request), 401 (Unauthorized), 403 (Forbidden) and 404 (File not Found).
Custom Error Pages in Website Hosting
If you get a Linux website hosting package from us, you shall be able to set custom made error pages for your sites easily and quickly, because this function is a part of all our solutions. The moment 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 particular domain or subdomain. In the pop-up which will appear, you shall see drop-down options menus for all four types of errors and for each one of them you can choose an Apache default page, a generic page from our system or a customized page. In case you select the third option, you should only type the URL to the file that you've uploaded and save the change. A different way to set custom error pages is to create an .htaccess file inside the domain or subdomain folder and to include a few lines of code in it. In case you don't have previous experience or if you're just unsure how to do this, you can simply copy/paste the code from our Knowledge Base article on that topic.
Custom Error Pages in Semi-dedicated Hosting
When you host your web sites in a semi-dedicated server account with us, you may set personalized error pages for any of them with ease through our in-house created Hepsia hosting Control Panel. With several clicks inside the Hosted Domains section, you could change the default setting from a system page to a personalized one for each of the 4 error types. All you have to do is provide a link to every file which you have uploaded before that and then save the change. If necessary, you will be able to revert this modification at any time and in exactly the same way. If you want, you could use an .htaccess file too. It must be created/uploaded within the domain or subdomain folder linked to the internet site whose error pages you would want to alter and the content for such a file can be found in our Help article on this matter.