If a particular page on a website doesn't load for some reason or if a link is broken, the website visitor will see an error page with a generic message. The page shall have nothing in common with the rest of the website, which can make the visitor leave your website. A likely solution in such a case is a function made available from some hosting companies - the ability to set up your own customized error pages that will have exactly the same design and style as your site and that may contain any text or images that you would like based on the particular error. There are 4 well-known errors which could take place and they involve these so-called HTTP status codes - 400, when your browser sends a bad request to the hosting server and it cannot be processed; 401, in case you are supposed to log in to see some web page, but you haven't done this yet; 403, if you don't have an authorization to view a certain page; and 404, if a link that you've clicked leads to a file which does not exist. In all of these situations, site visitors will be able to see your custom made content as opposed to a generic error page.
Custom Error Pages in Website Hosting
If you obtain a Linux website hosting package from us, you will be able to set custom made error pages for your websites easily and quickly, because this feature is a part of all our plans. After you've 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 particular domain or subdomain. Inside the pop-up that will be displayed, you will see drop-down menus for all 4 sorts 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 pick the 3rd option, you should only type the URL to the file that you have uploaded then save the change. A different way to set personalized error pages is to create an .htaccess file in the domain or subdomain folder and to include several lines of code in it. In case you don't have preceding experience or if you're simply not sure how to do that, you could just copy and paste the code from our Knowledge Base article on that matter.