If a page on your website doesn't load, an error message shall be shown to the website visitor. As there are different errors, there are different pages which will display, but what is standard for all of them is that they are generic and most likely will have nothing in common with the layout of your site, which could be irritating for any visitor. This is the primary reason why web hosting service providers have introduced a feature called Custom Error Pages. For a variety of different errors, website visitors will see your custom made content, which may be informative or humorous, based on your choice, and which shall match the overall design of your site, so the pages will not look like they aren't part of your website at all. You may use this option for numerous errors - 400 (Bad request), 401 (Unauthorized), 403 (Forbidden) and 404 (File not Found).

Custom Error Pages in Shared Hosting

The custom error pages function is offered with every shared hosting plan that we offer and you shall be able to substitute all generic pages with your own with no more than a few mouse clicks in your Hepsia hosting CP. You'll have to create the actual files and to upload them to your account, and then to set them for a given domain or subdomain using the Hosted Domains section of the Hepsia Control Panel. You may do this for every Internet site hosted inside the account separately, so that each set of custom pages shall have the exact same design and style as the Internet site it's part of. When necessary, you could always return back to a default page from our system or to the default Apache server page. Another way to set custom error pages is to create an .htaccess file in the domain/subdomain root folder and to add a few lines in it. If you haven't done this before, you could simply copy the necessary code from our Help article about this.

Custom Error Pages in Semi-dedicated Servers

All our semi-dedicated servers support custom error pages, thus you'll be able to use this feature for any domain or subdomain hosted in your account. All it takes to do that is to navigate to the Hosted Domains section of the Hepsia CP, to click the Edit button associated with the particular domain/subdomain and to type in the link to the custom file. You can do this individually for each and every error type. You will be able to switch back to a standard error page anytime if needed and the change shall take effect immediately. An alternative way to achieve the very same result is to set an .htaccess file inside the domain or subdomain folder of the website that you would like to modify and to enter several lines of program code within it. If you would like to try this method, you may copy and paste the required code from our Knowledge Base article on custom error pages, hence you will not need any programming skills or previous experience.