Whenever a page on your Internet site does not load, an error message shall be shown to the visitor. Since there are different errors, there are different pages that'll appear, but what is typical for all of them is that they're generic and almost certainly shall have nothing in common with the design of your website, which could be annoying for any site visitor. That is the reason why website hosting companies have introduced a function called Custom Error Pages. For a variety of different errors, visitors will see your customized content, which can be informative or amusing, in accordance with your taste, and which shall match the overall style and design of your Internet site, so the pages shall not look like they are not part of your site at all. You may use this option for a number of errors - 400 (Bad request), 401 (Unauthorized), 403 (Forbidden) and 404 (File not Found).
Custom Error Pages in Shared Hosting
You shall be able to set up personalized error pages for each of your domains or subdomains. The function is supported by all shared hosting
solutions which we provide, so after you log in to the Hepsia Control Panel and navigate to the Hosted Domains section, you can click on the Edit button for a domain/subdomain and in the pop-up which will be displayed, you could pick the sort of error page which should appear - a default one from our system, a typical Apache web server page or a custom one. For the last mentioned option, you need to specify the URL to the page, so when you use custom made pages, you need to upload the files inside your hosting account first. An alternative way is to use an .htaccess file located in the domain or subdomain folder with a line for each error type. The correct syntax can be located in our Knowledge Base, so you can use this feature even if you do not have any previous experience.
Custom Error Pages in Semi-dedicated Servers
Our Linux semi-dedicated servers
support tailor-made error pages, so you will be able to use this function for each and every domain or subdomain hosted inside your account. All it takes to do that is to navigate to the Hosted Domains section of the Hepsia CP, to click on the Edit button related to the given domain/subdomain and to type in the link to the custom-made file. You are able to do this separately for each error type. You'll be able to switch back to a default error page anytime if required and the change shall take effect right away. A different way to achieve the same result is to place an .htaccess file in the domain or subdomain folder related to the Internet site that you'd like to modify and to input a couple of lines of code inside 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 coding skills or previous experience.