When 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'll appear, but what is common for all of them is that they're generic and almost certainly will have practically nothing in common with the layout of your website, which may be frustrating for any visitor. That is the primary reason why hosting service providers have introduced a function named Custom Error Pages. For a number of different errors, website visitors will see your custom content, which can be informative or witty, depending on your choice, and that will match the overall layout of your site, so the pages shall not seem like they aren't part of your site at all. You can use this option for a variety of errors - 400 (Bad request), 401 (Unauthorized), 403 (Forbidden) and 404 (File not Found).
Custom Error Pages in Hosting
The customized error pages feature is provided with every single hosting plan we offer and you'll be able to swap the generic pages with your own with no more than several mouse clicks inside your Hepsia website hosting CP. You'll need 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 single site hosted inside the account individually, so that every set of custom pages will have the exact same design and style as the website it is part of. If necessary, you can always revert back to a default page from our system or to a default Apache server page. A different way to set personalized error pages is to create an .htaccess file inside the domain/subdomain root folder and to include a few lines in it. If you never done this before, you could simply copy the necessary program code from our Help article about this.
Custom Error Pages in Semi-dedicated Servers
All our semi-dedicated servers support personalized error pages, so you will be able to employ this feature for any domain or subdomain hosted in 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 related to the given domain/subdomain and then to type in the link to the custom-made file. You can do this separately for every error type. You'll be able to switch back to a standard error page at any time if required and the change shall take effect right away. An alternative way to get the same exact result is to place an .htaccess file in the domain or subdomain folder related to the Internet site that you'd like to modify and to input a few lines of program code within it. If you need to try this method, you could copy and paste the required code from our Knowledge Base article on custom error pages, therefore you will not need any computer programming skills or prior experience.