Whenever a page on your site doesn't load, an error message will be displayed to the website visitor. Because there are different errors, there are different pages that'll appear, but what's typical for all of them is that they're generic and most likely shall have nothing that resembles the design of your website, which may be irritating for any website visitor. This is the reason why website hosting companies have introduced a feature called Custom Error Pages. For a variety of different errors, visitors will see your unique content, which may be informative or humorous, depending on your personal preference, and which shall match the overall layout of your site, so the pages will not appear as if 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
You will be able to set up customized error pages for each of your domains or subdomains. The function is supported by all shared hosting
package that we provide, so when you log in to the Hepsia CP and go to the Hosted Domains section, you may click on the Edit button for a domain/subdomain and in the pop-up that"ll show up, you may choose the sort of error page which should appear - a default one from our system, a typical Apache web server page or a customized one. For the aforementioned option, you have to specify the URL to the page, so if you use customized pages, you need to upload the files in your website hosting account first. One other way is to use an .htaccess file positioned inside the domain or subdomain folder with a line for every error type. The actual syntax can be found in our Knowledge Base, so that you can use this feature even if you don't have any previous experience.
Custom Error Pages in Semi-dedicated Hosting
Our Linux semi-dedicated packages
support custom error pages, so you'll be able to employ this feature for every single domain or subdomain hosted inside your account. All it takes to do this is to visit the Hosted Domains section of the Hepsia CP, to click on the Edit button associated with the particular domain/subdomain and to type in the link to the custom-made file. You can do this individually for each and every error type. You shall be able to switch back to a default error page anytime if needed and the change shall take effect at once. A different way to get the very same result is to set an .htaccess file inside the domain or subdomain folder associated with the web site that you'd like to change and to input several lines of program code inside it. If you would like 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 programming skills or previous experience.