Whenever a page on your site doesn't load, an error message shall be shown to the site visitor. Since there are different errors, there are different pages which will appear, but what is common for all of them is that they are generic and most likely shall have nothing in common with the design of your Internet site, which can be aggravating for any website visitor. That is the primary reason why web hosting service providers have introduced a function referred to as Custom Error Pages. For a range of different errors, website visitors will see your unique content, which can be informative or humorous, depending on your preference, and that will match the overall layout of your website, so the pages will not seem like they aren't part of your website at all. You can use this option for numerous errors - 400 (Bad request), 401 (Unauthorized), 403 (Forbidden) and 404 (File not Found).
Custom Error Pages in Cloud Website Hosting
You will be able to set up customized error pages for any of your domains or subdomains. The feature is supported by all cloud website hosting plans that we provide, so after you log in to your Hepsia Control Panel and go to the Hosted Domains section, you can click on the Edit button for a domain/subdomain and in the pop-up that will show up, you can select the type of error page which should appear - a default one from our system, a typical Apache server page or a personalized one. For the aforementioned option, you'll have to specify the URL to the page, so if you use custom pages, you must upload the files in your hosting account first. One other way is to use an .htaccess file positioned in the domain or subdomain folder with a line for each error type. The precise syntax can be seen in our Knowledge Base, so you can use this feature even if you don't have any previous experience.
Custom Error Pages in Semi-dedicated Servers
If you host your web sites in a semi-dedicated server account with us, you could set custom made error pages for any of them easily using our in-house made Hepsia hosting Control Panel. With only several clicks inside the Hosted Domains section, you'll be able to modify the default setting from a system page to a customized one for each of the 4 error types. All you must do is supply a link to every single file that you've uploaded before that and then save the change. If necessary, you shall be able to revert this customization anytime and in exactly the same way. If you wish, you can use an .htaccess file as well. It has to be created/uploaded inside the domain or subdomain folder associated with the website whose error pages you would like to alter and the content for this type of file can be found in our Help article on this matter.