If a page on your site doesn't load, an error message shall be displayed to the site visitor. As there are different errors, there are different pages that'll display, but what's standard for all of them is that they are generic and most likely shall have nothing that resembles the layout of your site, which can be irritating for any website visitor. That is the primary reason why web hosting providers have introduced a function referred to as Custom Error Pages. For a range of different errors, website visitors will see your custom content, which may be informative or amusing, in accordance with your preference, and which will match the overall layout of your Internet site, so the pages will not appear as if they are not part of your site at all. You could use this option for numerous errors - 400 (Bad request), 401 (Unauthorized), 403 (Forbidden) and 404 (File not Found).
Custom Error Pages in Shared Web Hosting
You will be able to set up personalized error pages for any of your websites without difficulty if you use any of our Linux shared web hosting packages. This can be done through the Hosted Domains section of the Hepsia Control Panel, provided with all accounts and when you go there, you could set your custom made pages independently for any domain or subdomain. You must upload the files to your account before you start and enter the links to them during the process. This feature can be de-activated anytime and the options you shall be able to to select from are a standard page from our system or a default Apache web server page. Custom error pages can be set with an .htaccess file as well. The file should be put in the domain or subdomain folder and it must contain some system code and links to the pages. If you are not tech-savvy, you may copy the entire content needed for the file from our Help section.
Custom Error Pages in Semi-dedicated Hosting
All our Linux semi-dedicated packages support tailor-made error pages, so you shall be able to use this feature for every single domain or subdomain hosted in your account. All it takes to do this is to check out the Hosted Domains section of the Hepsia CP, to click on the Edit button related to the specific domain/subdomain and to type in the link to the custom-made file. You are able to do this independently for each and every error type. You'll be able to switch back to a generic error page at any time if required and the change will take effect straightaway. An alternative way to achieve the exact same result is to place an .htaccess file in the domain or subdomain folder related to the site which you want to edit and to input a couple of lines of code in it. If you want to try this method, you could copy and paste the required code from our Knowledge Base article on custom error pages, which means that you won't need any coding skills or previous experience.