If a specific page on an Internet site doesn't load for some reason or in case 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, that may make the visitor leave your website. A likely solution in this case is a function offered by some website hosting service providers - the ability to set up your own custom-made error pages that will have identical layout as your site and that can contain any text or images which you want dependent upon the specific error. There are four common errors which could take place and they involve these so-called HTTP status codes - 400, when your Internet 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 page, but you have not done so yet; 403, if you do not have a permission to see a particular page; and 404, in case a link that you have clicked leads to a file that does not exist. In all of these scenarios, site visitors shall be able to see your customized content as opposed to a generic error page.
Custom Error Pages in Shared Website Hosting
When you obtain a Linux shared website hosting service from our company, you'll be able to set custom made error pages for your sites easily, as this feature is part of all of our solutions. As soon as you have created the files and uploaded them to your web 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 menus for all four types of errors and for each of them you may choose an Apache default page, a generic page from our system or a custom made page. If you pick the third option, you should only input the URL to the file that you've uploaded then save the change. Another way to set custom error pages is to create an .htaccess file in the domain or subdomain folder and to include a couple of lines of code in it. In case you don't have preceding experience or if you're simply uncertain how to do that, you may simply copy/paste the code from our Knowledge Base article on that subject.
Custom Error Pages in Semi-dedicated Hosting
When you host your sites in a semi-dedicated server account from us, you may set custom error pages for any of them easily through our in-house created Hepsia hosting CP. With several mouse clicks inside the Hosted Domains section, you are able to change the default setting from a system page to a personalized one for each of the 4 error types. All you should do is supply a link to each and every file which you have uploaded before that and then save the change. If needed, you'll be able to revert this modification whenever you want and in exactly the same way. If you prefer, you could use an .htaccess file too. It has to be created/uploaded inside the domain or subdomain folder associated with the site whose error pages you want to modify and the content for this type of file can be found in our Help article about this matter.