When a page on your website does not load, an error message will be shown to the site visitor. Since there are different errors, there are different pages which will appear, but what's common for all of them is that they're generic and almost certainly will have absolutely nothing in common with the layout of your site, which could be aggravating for any site visitor. That is the main reason why hosting providers have introduced a function referred to as Custom Error Pages. For a wide variety of different errors, visitors shall see your custom made content, which can be informative or witty, based on your preference, and which will match the overall design and style of your website, so the pages won't look like they're not part of your Internet site at all. You could use this option for a variety of errors - 400 (Bad request), 401 (Unauthorized), 403 (Forbidden) and 404 (File not Found).
Custom Error Pages in Website Hosting
The custom error pages function is available with every website hosting plan which we offer and you'll be able to replace all of the generic pages with your own with no more than a few clicks inside your Hepsia hosting CP. You will have to create the actual files and to upload them to your account, then to set them for a particular domain or subdomain through the Hosted Domains section of the Hepsia Control Panel. You may do this for each Internet site hosted inside the account independently, so that every set of custom pages shall have the same design and style as the Internet site it is part of. When necessary, you can always revert back to a default page from our system or to the default Apache server page. A different way to set custom made error pages is to create an .htaccess file inside the domain/subdomain root folder and to add a few lines in it. If you have not done this before, you can simply copy the necessary program code from our Help article about this.
Custom Error Pages in Semi-dedicated Hosting
All of our Linux semi-dedicated hosting support custom error pages, thus you'll be able to employ this feature for any domain or subdomain hosted inside your account. All it will take to do this 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 to input the link to the custom file. You'll be able to do this individually for each and every error type. You will be able to switch back to a default error page anytime if required and the change will take effect at once. A different way to get the same exact result is to set an .htaccess file inside the domain or subdomain folder associated with the site which you'd like to modify and to enter several lines of code within it. If you'd like to try this method, you may copy and paste the required code from our Knowledge Base article on custom error pages, hence you won't need any coding skills or previous experience.