If a particular page on a site does not load for some reason or if 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 Internet site, which may make the visitor leave your site. A solution in such a case is a function made available from some web hosting companies - the ability to set up your own custom-made error pages which shall have exactly the same layout as your Internet site and which could contain any images or text you want based on the specific error. There are four standard errors that may occur and they involve these 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, if you are supposed to log in to see some webpage, but you haven't done this yet; 403, if you do not have a permission to see a certain page; and 404, if a link that you have clicked leads to a file which does not exist. In any of these cases, visitors shall be able to see your custom made content instead of a generic error page.
Custom Error Pages in Hosting
When you get a Linux hosting plan from our company, you'll be able to set personalized error pages for your sites quickly and easily, since this feature is a part of all our plans. Once you have created the files and uploaded them to your hosting account, you should check out the Hosted Domains section of your Hepsia Control Panel and click on the Edit button for the specific domain or subdomain. Inside the pop-up that will appear, you'll see drop-down options menus for all four sorts of errors and for each of them you may pick an Apache default page, a generic page from our system or a customized page. If 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 personalized error pages is to create an .htaccess file inside the domain or subdomain folder and to add a few lines of program code in it. If you don't have preceding experience or if you're just unsure how to do that, you can simply copy and paste the code from our Knowledge Base article on that matter.