When a page on your website does not load, an error message will be shown to the visitor. Since there are different errors, there are different pages which will show up, but what is typical for all of them is that they're generic and almost certainly shall have nothing in common with the layout of your Internet site, which can be annoying for any website visitor. That is the primary reason why website hosting service providers have introduced a feature called Custom Error Pages. For a wide variety of different errors, site visitors shall see your unique content, which may be informative or witty, based on your taste, and that will match the design of your website, so the pages won't look like they're not part of your site at all. You can use this option for many errors - 400 (Bad request), 401 (Unauthorized), 403 (Forbidden) and 404 (File not Found).

Custom Error Pages in Website Hosting

You shall be able to set up personalized error pages for any of your domains or subdomains. The feature is supported by all website hosting solutions that we offer, so as soon as you log in to the Hepsia CP and navigate to the Hosted Domains section, you can click on the Edit button for a domain/subdomain and in the pop-up that"ll be displayed, you could select the type of error page which should show up - a default one from our system, a typical Apache web server page or a customized one. For the last mentioned option, you'll have to assign the URL to the page, so if you use personalized pages, you should upload the files in your website hosting account first. Another way is to use an .htaccess file located inside the domain or subdomain folder with a line for every error type. The exact syntax can be seen in our Knowledge Base, so you can use this function even if you do not have any previous experience.

Custom Error Pages in Semi-dedicated Servers

All our Linux semi-dedicated hosting plans support custom error pages, so you will be able to use this feature for each domain or subdomain hosted in your account. All it takes to do this is to navigate to the Hosted Domains section of the Hepsia Control Panel, to click on the Edit button linked to the given domain/subdomain and then to input the link to the custom-made file. You could do this separately for each and every error type. You will be able to switch back to a default error page at any time if needed and the change shall take effect immediately. Another way to get the same exact result is to set an .htaccess file inside the domain or subdomain folder associated with the Internet site which you want to modify and to type in several lines of program code within it. If you'd like 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 shall not need any coding skills or prior experience.