Each time a page on your Internet site does not load, an error message will be displayed to the website visitor. Since there are different errors, there are different pages that'll show up, but what's typical for all of them is that they are generic and almost certainly will have nothing that is similar to the layout of your site, which may be aggravating for any website visitor. This is the reason why website hosting companies have introduced a feature called Custom Error Pages. For a range of different errors, website visitors will see your custom content, which can be informative or amusing, depending on your personal preference, and which shall match the design and style of your Internet site, so the pages won't look like they're not part of your site at all. You can use this option for many errors - 400 (Bad request), 401 (Unauthorized), 403 (Forbidden) and 404 (File not Found).
Custom Error Pages in Shared Hosting
When you order a Linux shared hosting from us, you shall be able to set custom error pages for your websites quickly and easily, as this function is part of all our packages. After you have created the files and uploaded them to your hosting account, you can check out the Hosted Domains section of your Hepsia CP and click on the Edit button for the specific domain or subdomain. In the pop-up that will show up, you shall see drop-down menus for all 4 sorts of errors and for each of them you may pick an Apache default page, a generic page from our system or a personalized page. In case you select the third option, you should only type the URL to the file which you have uploaded and save the change. Another way to set customized error pages is to create an .htaccess file in the domain or subdomain folder and to add a few lines of program code in it. If you don't have previous experience or if you are just unsure how to do that, you may just copy/paste the code from our Knowledge Base article on that subject.
Custom Error Pages in Semi-dedicated Hosting
When you host your Internet sites in a semi-dedicated server account from our company, you could set customized error pages for any of them effortlessly using our in-house made Hepsia hosting CP. With just a few mouse clicks inside the Hosted Domains section, you can change the default setting from a system page to a custom made one for each of the 4 error types. All you must do is provide a link to every file that you've uploaded before that and then save the change. If required, you shall be able to revert this customization whenever you want and in exactly the same way. If you want, you can use an .htaccess file as well. It must be created/uploaded within the domain or subdomain folder linked to the website whose error pages you intend to modify and the content for this kind of file can be found in our Help article for this matter.