Custom Error Pages
Understand what a Custom Error Page is, what role does it serve and ways to create one.
If a certain page on a website doesn't load for some reason or if a link is not functioning, the website visitor will see an error page with some generic message. The page will have nothing in common with the rest of the website, that can make the visitor leave your Internet site. A likely solution in cases like this is a feature offered by some web hosting companies - the ability to set your own customized error pages which will have the exact same style and design as your site and that may contain any images or text that you would like depending on the specific error. There are four common errors which can occur and they involve the following so-called HTTP status codes - 400, when your world-wide web browser sends a bad request to the server and it cannot be processed; 401, if you are supposed to log in to see a page, but you have not done this yet; 403, if you do not have an authorization to view a specific page; and 404, in case a link which you've clicked leads to a file which does not exist. In all of these cases, site visitors will be able to see your custom made content instead of a generic error page.
-
Custom Error Pages in Hosting
If you acquire a
Linux hosting from us, you'll be able to set personalized error pages for your Internet sites easily, because this feature is a part of all of our solutions. Once you have 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 particular domain or subdomain. In the pop-up which will appear, you shall see drop-down menus for all four kinds of errors and for each of them you could select an Apache default page, a generic page from our system or a tailor-made page. If you select the third option, you should simply enter the URL to the file that you've uploaded then save the change. One other way to set customized error pages is to create an .htaccess file inside the domain or subdomain folder and to add several lines of code in it. If you don't have preceding experience or if you are simply unsure how to do that, you may just copy and paste the code from our Knowledge Base article on that subject.
-
Custom Error Pages in Semi-dedicated Hosting
When you host your web sites in a
semi-dedicated server account from us, you could set personalized error pages for each of them with ease through our in-house created Hepsia hosting Control Panel. With only a few mouse clicks in the Hosted Domains section, you can modify the default setting from a system page to a customized one for any of the four error types. All you have to do is provide a link to every single file which you have uploaded before that and then save the change. If needed, you will be able to revert this change anytime and in exactly the same way. If you'd like, you could use an .htaccess file too. It should be created/uploaded within the domain or subdomain folder belonging to the internet site whose error pages you would like to modify and the content for this type of file can be found in our Help article on this matter.