If a certain page on a site doesn't load for some reason or in case a link is not working, the website visitor will see an error page with some generic message. The page will have nothing in common with the rest of the site, that could make the visitor leave your site. A possible solution in cases like this is a function made available from some hosting providers - the option to set up your own personalized error pages that shall have the same design as your site and that can contain any text or images which you want based on the specific error. There are 4 common errors that could occur and they involve the following 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 a web page, but you have not done this yet; 403, if you do not have a permission to see a certain page; and 404, if a link which you've clicked leads to a file that does not exist. In all of these situations, visitors shall be able to see your custom made content as opposed to a generic error page.
Custom Error Pages in Web Hosting
When you buy a web hosting plan
from our company, you'll be able to set personalized error pages for your sites easily and quickly, because this feature is part of all our packages. After you have created the files and uploaded them to your web hosting account, you can 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 shall see drop-down menus for all four types of errors and for each one of them you could select an Apache default page, a generic page from our system or a customized page. If you select the third option, you should simply input the URL to the file that you've uploaded then save the change. One other way to set personalized 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. If you don't have preceding experience or if you are just uncertain how to do that, you may simply copy and paste the code from our Knowledge Base article on that matter.
Custom Error Pages in Semi-dedicated Servers
When you host your sites in a semi-dedicated server
account with us, you may set personalized error pages for each of them effortlessly via our in-house created Hepsia hosting Control Panel. With only several mouse clicks in the Hosted Domains section, you could change the default setting from a system page to a customized one for each of the 4 error types. All you must do is supply a link to every file that you have 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'd like, you may use an .htaccess file as well. It should be created/uploaded inside the domain or subdomain folder related to the site whose error pages you intend to alter and the content for this kind of file can be found in our Help article for this matter.