If a page on your Internet site doesn't load, an error message will be displayed to the site visitor. Because there are different errors, there are different pages which will show up, but what is typical for all of them is that they are generic and almost certainly shall have absolutely nothing in common with the layout of your Internet site, which may be irritating for any website visitor. This is the primary reason why web hosting companies have introduced a feature named Custom Error Pages. For a wide variety of different errors, site visitors shall see your custom content, which can be informative or humorous, based on your preference, and which will match the design of your Internet site, so the pages will not appear as if they are not part of your Internet site at all. You may use this option for a variety of errors - 400 (Bad request), 401 (Unauthorized), 403 (Forbidden) and 404 (File not Found).
Custom Error Pages in Cloud Hosting
If you obtain a Linux cloud service from us, you'll be able to set custom error pages for your websites easily and quickly, as this feature is part of all our packages. After you've 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. In the pop-up which will show up, you will see drop-down menus for all four sorts of errors and for each one of them you can select an Apache default page, a generic page from our system or a custom page. Should you select the 3rd option, you should only type the URL to the file you have uploaded then save the change. One other way to set personalized error pages is to set up an .htaccess file inside the domain or subdomain folder and to add a few lines of program code in it. If you do not have prior experience or if you're just uncertain how to do that, you could simply copy and paste the code from our Knowledge Base article on that topic.
Custom Error Pages in Semi-dedicated Servers
All Linux semi-dedicated service which we offer support custom made error pages and it shall not take more than a couple of clicks inside your Hepsia web hosting Control Panel to use this functionality. The option can be found in the Hosted Domains section of your Control Panel in which you will need to enter the links to the custom-made files via simple drop-down menus and a user-friendly interface. Keep in mind, you have to upload them inside your account before that. In case you do not want to use this function at some point, you can easily deactivate it just as easily and select an Apache server page or a default page from our system to be displayed if your visitors encounter an error. If you'd prefer, you can also use an .htaccess file to allow the custom made error pages. The file has to include a particular line of code as well as a link for each error type and you can discover an example of the whole content for all four error types in our Help section.