If a particular page on a site doesn't load for some reason or in case a link is broken, the site visitor shall see an error page with some generic message. The page will have nothing in common with the rest of the website, that may make the visitor leave your site. A potential solution in such a case is a feature offered by some hosting providers - the ability to set up your own custom error pages that will have the exact same layout as your site and that can contain any text or images you want based on the particular error. There are four standard errors which may occur and they involve these particular 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 page, but you haven't done so yet; 403, if you do not have an authorization to view a particular page; and 404, in case a link that you have clicked leads to a file that doesn't exist. In all of these cases, site visitors shall be able to see your customized content instead of a generic error page.

Custom Error Pages in Hosting

You can set up custom error pages for any of your domains or subdomains. The feature is supported by all hosting solutions which we offer, so as soon as you log in to your Hepsia Control Panel and check out the Hosted Domains section, you can easily click on the Edit button for a domain/subdomain and in the pop-up that"ll appear, you can pick the sort of error page that should appear - a default one from our system, a typical Apache web server page or a custom one. For the last mentioned alternative, you have to assign the URL to the page, so if you use customized pages, you should upload the files inside your web hosting account first. One other way is to use an .htaccess file located inside the domain or subdomain folder with a line for each and every error type. The exact syntax can be located in our Knowledge Base, to help you use this function even if you do not have any previous experience.

Custom Error Pages in Semi-dedicated Servers

Our Linux semi-dedicated plans support tailor-made error pages, thus you'll be able to use this feature for each and every domain or subdomain hosted in your account. All it takes to do this is to go to the Hosted Domains section of the Hepsia CP, to click on the Edit button linked to the given domain/subdomain and then to enter the link to the custom file. You could do this independently for every error type. You will be able to switch back to a default error page anytime if necessary and the change shall take effect at once. Another way to achieve the exact same result is to put an .htaccess file in the domain or subdomain folder related to the web site that you would like to change and to enter a couple of lines of program code in it. If you would like to try this method, you may copy and paste the necessary code from our Knowledge Base article on custom error pages, hence you shall not need any coding skills or previous experience.