If a particular page on an Internet site does not 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 shall have nothing in common with the rest of the site, which can make the visitor leave your site. A likely solution in cases like this is a feature made available from some web hosting service providers - the option to set your own customized error pages which shall have identical layout as your Internet site and which may contain any text or images that you would like depending on the particular error. There are four popular errors that can take place and they involve the following so-called HTTP status codes - 400, when your web browser sends a bad request to the server and it can't be processed; 401, if you're supposed to log in to see some webpage, but you have not done so yet; 403, if you do not have a permission to view a specific page; and 404, in case a link which you've clicked leads to a file that doesn't exist. In each of these situations, site visitors will be able to see your personalized content instead of a generic error page.
Custom Error Pages in Cloud Hosting
If you order a Linux cloud hosting from us, you shall be able to set customized error pages for your websites easily and quickly, as this function is part of all our solutions. The moment you've 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 particular domain or subdomain. In the pop-up which will appear, you will see drop-down menus for all four kinds 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. Should you choose the third option, you should only input the URL to the file that you have uploaded and save the change. A different way to set customized error pages is to create an .htaccess file inside the domain or subdomain folder and to include several lines of program code in it. In case you don't have previous experience or if you are simply unsure how to do that, you can simply copy and paste the code from our Knowledge Base article on that subject.
Custom Error Pages in Semi-dedicated Hosting
If you host your sites in a semi-dedicated server account from our company, you can set personalized error pages for any of them with ease via our in-house created Hepsia hosting CP. With only a few clicks inside the Hosted Domains section, you can edit the default setting from a system page to a custom one for any of the four error types. All you have to do is supply a link to each file you have uploaded before that and then save the change. If needed, you shall be able to revert this change whenever you want and in exactly the same way. If you prefer, you can use an .htaccess file as well. It should be created/uploaded in the domain or subdomain folder associated with the website whose error pages you would want to alter and the content for this kind of file can be found in our Help article about this matter.