Whenever a page on your Internet site does not load, an error message shall be shown to the visitor. As there are different errors, there are different pages which will show up, but what is standard for all of them is that they're generic and most likely will have nothing that is similar to the design of your website, which may be aggravating for any site visitor. That is the reason why hosting providers have introduced a feature called Custom Error Pages. For a wide variety of different errors, site visitors will see your custom made content, which may be informative or amusing, in accordance with your choice, and which will match the overall style and design of your website, so the pages will not appear as if they're not part of your Internet site at all. You can use this option for a number of errors - 400 (Bad request), 401 (Unauthorized), 403 (Forbidden) and 404 (File not Found).
Custom Error Pages in Shared Web Hosting
When you get a Linux shared web hosting package from our company, you will be able to set custom error pages for your Internet sites quickly and easily, as this function is part of all our plans. Once you've created the files and uploaded them to your web hosting account, you can check out the Hosted Domains section of your Hepsia Control Panel and click on the Edit button for the particular domain or subdomain. In the pop-up that will show up, you'll see drop-down menus for all four sorts of errors and for each one of them you could pick an Apache default page, a generic page from our system or a custom page. If you select the third option, you should only type the URL to the file that you have uploaded and save the change. One other way to set custom error pages is to create an .htaccess file in the domain or subdomain folder and to include a couple of lines of code in it. If you do not have prior experience or if you're simply unsure how to do this, you could just copy and paste the code from our Knowledge Base article on that topic.
Custom Error Pages in Semi-dedicated Hosting
Incorporating your pages for each of the 4 error types to any site hosted inside a semi-dedicated server account with us will be really uncomplicated and shall not take more than a couple of mouse clicks. After you upload the files to your account, you can go to the Hosted Domains section of your Hepsia CP and edit the domains and subdomains listed there via an intuitive interface with drop-down navigation. You can choose what page should appear for each and every error type. The options are a standard Apache server page or a page from our system, and custom pages. Should you choose the aforementioned option, you need to type in the link to each and every page inside your account, then save the change. The link or the type of page which shows up in case a user encounters an error can be changed at any time. In case you’re more experienced, you may use an .htaccess file to set in-house made error pages as well, as an alternative to using our integrated generator software tool, and in case you choose this option, the file should be located inside the root directory of a particular domain or subdomain.