If a specific page on an Internet site doesn't load for some reason or if a link is not functioning, the website visitor shall see an error page with a generic message. The page will have nothing in common with the rest of the website, which may make the visitor leave your website. A potential solution in this case is a function made available from some hosting providers - the option to set your own customized error pages that shall have the exact same style and design as your website and which could contain any text or images that you would like depending on the specific error. There are 4 popular errors that can occur and they involve these so-called HTTP status codes - 400, when your web browser sends a bad request to the hosting server and it can't be processed; 401, in case you are supposed to log in to see some webpage, but you haven't done so yet; 403, if you do not have a permission to see a particular page; and 404, if a link that you have clicked leads to a file that does not exist. In each of these situations, website visitors will be able to see your custom content rather than a generic error page.
Custom Error Pages in Cloud Website Hosting
When you buy a Linux cloud website hosting from our company, you will be able to set custom made error pages for your sites quickly and easily, as this function is part of all of our solutions. Once you've created the files and uploaded them to your web hosting account, you should check out the Hosted Domains section of your Hepsia Control Panel and click on the Edit button for the particular domain or subdomain. Inside the pop-up which will appear, you shall see drop-down options menus for all 4 kinds of errors and for each of them you can pick 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 which you have uploaded then save the change. One other way to set custom error pages is to set up an .htaccess file in the domain or subdomain folder and to include a few lines of program code in it. If you don't have preceding experience or if you're just not sure how to do that, you could just copy and paste the code from our Knowledge Base article on that matter.
Custom Error Pages in Semi-dedicated Hosting
When you host your web sites in a semi-dedicated server account from our company, you could set custom made error pages for any of them with ease using our in-house developed Hepsia hosting CP. With only several clicks in the Hosted Domains section, you can edit the default setting from a system page to a custom made one for each of the 4 error types. All you have to do is provide a link to each and 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 should be created/uploaded in the domain or subdomain folder linked to the website whose error pages you would want to modify and the content for this kind of file can be found in our Help article on this matter.