If a specific page on a site doesn't load for some reason or if a link is not working, the site visitor will see an error page with some generic message. The page will have nothing in common with the rest of the website, that could make the visitor leave the website. A solution in cases like this is a feature made available from some website hosting companies - the option to set up your own custom-made error pages that shall have the exact same layout as your Internet site and that may contain any text or images which you want based on the particular error. There are 4 popular errors which could occur and they involve these particular so-called HTTP status codes - 400, when your web browser sends a bad request to the hosting server and it cannot be processed; 401, if you are supposed to log in to see some page, but you have not done so yet; 403, if you don't have a permission to view a particular page; and 404, in case a link that you've clicked leads to a file that doesn't exist. In all of these situations, visitors shall be able to see your personalized content instead of a generic error page.
Custom Error Pages in Web Hosting
If you buy a Linux web hosting service from us, you will be able to set custom made error pages for your sites quickly and easily, since this feature is a part of all of our solutions. The moment you have created the files and uploaded them to your website hosting account, you should check out the Hosted Domains section of your Hepsia CP and click on the Edit button for the specific domain or subdomain. Inside the pop-up that will show up, you shall see drop-down options menus for all four sorts of errors and for each one of them you could choose an Apache default page, a generic page from our system or a personalized page. In case you pick the 3rd option, you should simply input the URL to the file you have uploaded and save the change. A different way to set custom made error pages is to set up an .htaccess file in the domain or subdomain folder and to include a few lines of code in it. In case you don't have previous experience or if you are just uncertain how to do this, you can simply copy/paste the code from our Knowledge Base article on that subject.
Custom Error Pages in Semi-dedicated Servers
If you host your websites in a semi-dedicated server account from our company, you can set custom error pages for each of them effortlessly using our in-house built Hepsia hosting CP. With only a few clicks inside the Hosted Domains section, you'll be able to change the default setting from a system page to a customized one for each of the 4 error types. All you should do is provide a link to every single file which you have uploaded before that and then save the change. If necessary, you shall be able to revert this change anytime and in exactly the same way. If you'd like, you may use an .htaccess file too. It must be created/uploaded in the domain or subdomain folder related to the website whose error pages you intend to modify and the content for such a file can be found in our Help article for this matter.