Whenever a page on your site doesn't load, an error message shall be shown to the website visitor. Since there are different errors, there are different pages that will show up, but what is common for all of them is that they are generic and probably shall have practically nothing that resembles the design of your Internet site, which may be irritating for any website visitor. That is the primary reason why website hosting service providers have introduced a feature called Custom Error Pages. For a variety of different errors, site visitors shall see your custom made content, which can be informative or amusing, based on your personal preference, and which will match the overall design of your Internet site, so the pages will not seem like they're not part of your site at all. You can use this option for a number of errors - 400 (Bad request), 401 (Unauthorized), 403 (Forbidden) and 404 (File not Found).
Custom Error Pages in Hosting
You will be able to set up custom made error pages for any of your domains or subdomains. The function is supported by all hosting plans which we offer, so when you log in to your Hepsia CP and go to the Hosted Domains section, you may click on the Edit button for a domain/subdomain and in the pop-up that"ll be displayed, you may select the kind of error page which should show up - a default one from our system, a standard Apache web server page or a customized one. For the latter alternative, you need to specify the URL to the page, so when you use custom made pages, you should upload the files in your web hosting account first. Another way is to use an .htaccess file placed inside the domain or subdomain folder with a line for each error type. The exact syntax can be located in our Knowledge Base, to help you use this feature even if you do not have any previous experience.
Custom Error Pages in Semi-dedicated Hosting
All of our Linux semi-dedicated hosting support custom error pages, so you'll be able to employ this function for each and every domain or subdomain hosted inside your account. All it takes to do this is to navigate to the Hosted Domains section of the Hepsia CP, to click on the Edit button related to the particular domain/subdomain and then to enter the link to the custom file. You could do this independently for each error type. You'll be able to switch back to a generic error page anytime if necessary and the change will take effect right away. An alternative way to achieve the same exact result is to set an .htaccess file inside the domain or subdomain folder associated with the web site that you'd like to edit and to input a couple of lines of code within it. If you need to try this method, you may copy and paste the necessary code from our Knowledge Base article on custom error pages, which means that you won't need any programming skills or prior experience.