If a specific page on an Internet site doesn't load for some reason or in case a link is not working, the site visitor shall see an error page with some generic message. The page will have nothing in common with the rest of the site, which could make the visitor leave your website. A possible solution in cases like this is a feature made available from some website hosting providers - the ability to set up your own custom error pages which shall have the same layout as your Internet site and which can contain any text or images that you'd like dependent upon the particular error. There are four well-known errors that can occur and they involve these so-called HTTP status codes - 400, when your browser sends a bad request to the web server and it cannot be processed; 401, in case you are supposed to log in to see some page, but you haven't done this yet; 403, if you do not have an authorization to view a specific page; and 404, in case a link which you have clicked leads to a file which does not exist. In each of these situations, site visitors will be able to see your customized content as opposed to a generic error page.
Custom Error Pages in Hosting
When you order a hosting plan from us, you'll be able to set custom error pages for your websites easily, because this feature is part of all our plans. After you've created the files and uploaded them to your website 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. In the pop-up that will appear, you will see drop-down options menus for all four kinds of errors and for each one of them you can pick an Apache default page, a generic page from our system or a tailor-made page. Should you pick the third option, you should only input the URL to the file you have uploaded then save the change. Another way to set custom made error pages is to create an .htaccess file in the domain or subdomain folder and to add a few lines of code in it. If you do not have prior experience or if you're simply not sure how to do that, you can just copy and paste the code from our Knowledge Base article on that topic.