Whenever a page on your site does not load, an error message shall be shown to the visitor. As there are different errors, there are different pages that'll display, but what is standard for all of them is that they're generic and probably will have practically nothing that is similar to the layout of your website, which could be frustrating for any website visitor. That is the main reason why web hosting providers have introduced a function referred to as Custom Error Pages. For a range of different errors, website visitors shall see your custom made content, which could be informative or funny, depending on your choice, and that will match the design and style of your Internet site, so the pages shall 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'll be able to set up custom error pages for any of your domains or subdomains. The feature is supported by all cloud hosting solutions that we provide, so as soon as you log in to the Hepsia CP 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 show up, you can select the sort of error page which should show up - a default one from our system, a conventional Apache server page or a custom one. For the latter alternative, you will need to specify the URL to the page, so if you use personalized pages, you need to upload the files inside 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 every error type. The correct syntax can be found in our Knowledge Base, so you can use this feature even if you don't have any previous experience.
Custom Error Pages in Semi-dedicated Servers
Our semi-dedicated servers support personalized error pages, thus you'll be able to use this feature for each domain or subdomain hosted inside your account. All it will take to do that is to navigate to the Hosted Domains section of the Hepsia Control Panel, to click on the Edit button associated with the given domain/subdomain and to type the link to the custom file. You can do this separately for each and every error type. You will be able to switch back to a generic error page at any time if required and the change shall take effect right away. A different way to get the exact same result is to set an .htaccess file inside the domain or subdomain folder of the website which you want to change and to type in a couple of lines of program code inside it. If you'd like to try this method, you can copy and paste the necessary code from our Knowledge Base article on custom error pages, which means that you'll not need any programming skills or prior experience.