If a certain page on a site does not load for some reason or in case a link is not working, the visitor shall see an error page with a generic message. The page will have nothing in common with the rest of the site, that can make the visitor leave your website. A likely solution in such a case is a function offered by some hosting service providers - the option to set up your own customized error pages which will have the exact same style and design as your site and that may contain any text or images that you would like dependent upon the particular error. There are 4 common errors which could take place and they involve the following so-called HTTP status codes - 400, when your web 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 web page, but you have not done so yet; 403, if you do not have a permission to see a certain page; and 404, if a link that you've clicked leads to a file which does not exist. In each of these situations, website visitors will be able to see your customized content as opposed to a generic error page.
Custom Error Pages in Web Hosting
If you order a web hosting from our company, you shall be able to set personalized error pages for your sites quickly and easily, because this function is part of all of our packages. Once you've created the files and uploaded them to your hosting account, you can check out the Hosted Domains section of your Hepsia Control Panel and click on the Edit button for the selected domain or subdomain. In the pop-up that will be displayed, you shall see drop-down menus for all four sorts of errors and for each one of them you can pick an Apache default page, a generic page from our system or a custom page. If you select the 3rd option, you should simply enter the URL to the file that you've uploaded then save the change. A different way to set customized error pages is to create an .htaccess file in the domain or subdomain folder and to add a couple of lines of program code in it. If you don't have prior experience or if you are simply unsure how to do that, you can simply copy/paste the code from our Knowledge Base article on that subject.
Custom Error Pages in Semi-dedicated Servers
All of the semi-dedicated servers which we provide support custom error pages and it shall not take more than several clicks from your Hepsia website hosting Control Panel to use this feature. The option is available in the Hosted Domains section of your Control Panel where you'll need to type in the links to the custom-made files using basic drop-down menus and an intuitive interface. Of course, you must upload them inside your account before that. In case you do not need to employ this function at some point, you can easily disable it just as quickly and choose an Apache server page or a default page from our system to be shown if your visitors encounter an error. If you'd prefer, you could also use an .htaccess file to enable the personalized error pages. The file needs to have a particular line of code as well as a link for every single error type and you can easily find an example of the whole content for all four error types in our Help section.