If a specific page on a site does not load for some reason or in case a link is not functioning, the visitor shall 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 Internet site. A solution in this case is a feature made available from some web hosting service providers - the option to set your own custom-made error pages that shall have identical style and design as your website and which could contain any images or text that you'd like based on the particular error. There are four common errors that could occur and they involve the following so-called HTTP status codes - 400, when your browser sends a bad request to the server and it can't be processed; 401, in case you are supposed to log in to see a page, but you haven't done this yet; 403, if you don't have an authorization to view a certain page; and 404, in case a link that you've clicked leads to a file that does not exist. In any of these cases, site visitors will be able to see your custom content instead of a generic error page.
Custom Error Pages in Website Hosting
The custom error pages function is provided with each website hosting
plan that we offer and you'll be able to substitute all the generic pages with your own with no more than just a few mouse clicks from your Hepsia website hosting CP. You'll have to develop the actual files and to upload them to your account, and then to set them for a particular domain or subdomain from the Hosted Domains section of the Hepsia Control Panel. You can easily do this for each and every Internet site hosted in the account independently, so that each set of personalized pages will have the very same layout as the website it's part of. If needed, you can always go back to a default page from our system or to a default Apache server page. An alternate way to set custom made error pages is to create an .htaccess file in the domain/subdomain root folder and to include a few lines in it. If you never done this before, you could simply copy the needed code from our Help article about this.
Custom Error Pages in Semi-dedicated Hosting
All our Linux semi-dedicated hosting
support tailor-made error pages, so you will be able to use this feature for each domain or subdomain hosted in your account. All it takes to do that is to visit the Hosted Domains section of the Hepsia Control Panel, to click the Edit button related to the given domain/subdomain and to enter the link to the custom-made file. You can do this separately for every error type. You shall be able to switch back to a standard error page anytime if required and the change will take effect at once. Another way to achieve the exact same result is to place an .htaccess file in the domain or subdomain folder of the Internet site which you'd like to modify and to input a couple of lines of program code within it. If you need to try this method, you could copy and paste the necessary code from our Knowledge Base article on custom error pages, which means that you will not need any programming skills or previous experience.