When a page on your website does not load, an error message shall be displayed to the visitor. As there are different errors, there are different pages that'll display, but what is common for all of them is that they're generic and probably shall have practically nothing in common with the design of your website, which can be aggravating for any site visitor. This is the primary reason why website hosting service providers have introduced a function named Custom Error Pages. For a number of different errors, website visitors will see your customized content, which could be informative or humorous, based on your personal preference, and which shall match the overall style and design of your Internet site, so the pages will not appear as if 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 Cloud Hosting
You shall be able to set up custom made error pages for any of your domains or subdomains. The feature is supported by all cloud hosting package that we provide, 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 which will show up, you can pick the sort of error page which should show up - a default one from our system, a typical Apache web server page or a custom one. For the latter option, you have to specify the URL to the page, so when you use custom pages, you have to upload the files in your website hosting account first. An alternative way is to use an .htaccess file located in the domain or subdomain folder with a line for each and every error type. The actual syntax can be found in our Knowledge Base, to help you use this function even if you don't have any previous experience.
Custom Error Pages in Semi-dedicated Servers
All of our semi-dedicated servers support custom made error pages, thus you'll be able to employ this function 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 the Edit button related to the specific domain/subdomain and then to type the link to the custom file. You'll be able to do this independently for every error type. You'll be able to switch back to a generic error page at any time if required and the change will take effect immediately. Another way to achieve the same exact result is to place an .htaccess file inside the domain or subdomain folder associated with the site which you want to edit and to input a couple of lines of code within it. If you need to try this method, you can copy and paste the needed code from our Knowledge Base article on custom error pages, therefore you won't need any coding skills or previous experience.