When a page on your website does not load, an error message shall be shown to the website visitor. Because there are different errors, there are different pages which will appear, but what is common for all of them is that they're generic and most likely will have nothing that is similar to the layout of your website, which could be aggravating for any website visitor. That is the main reason why website hosting companies have introduced a feature referred to as Custom Error Pages. For a variety of different errors, visitors shall see your custom made content, which could be informative or humorous, in accordance with your personal preference, and which will match the overall layout of your website, so the pages shall not look like they are not part of your Internet site at all. You can use this option for many errors - 400 (Bad request), 401 (Unauthorized), 403 (Forbidden) and 404 (File not Found).
Custom Error Pages in Website Hosting
When you order a website hosting from our company, you'll be able to set customized error pages for your sites quickly and easily, since this feature is part of all our packages. After you've created the files and uploaded them to your website hosting account, you should check out the Hosted Domains section of your Hepsia Control Panel and click on the Edit button for the selected domain or subdomain. Inside the pop-up which will be displayed, you shall see drop-down options menus for all 4 sorts of errors and for each one of them you could choose an Apache default page, a generic page from our system or a tailor-made page. In case you choose the 3rd option, you should just input the URL to the file that you've uploaded then save the change. A different way to set custom error pages is to set up an .htaccess file inside the domain or subdomain folder and to add a couple of lines of program code in it. In case you don't have prior experience or if you are just uncertain how to do this, you could just copy and paste the code from our Knowledge Base article on that matter.
Custom Error Pages in Semi-dedicated Servers
Including your pages for each of the four error types to any web site hosted inside a semi-dedicated server account with us shall be very easy and shall not take more than several mouse clicks. After you upload the files in your account, you could check out the Hosted Domains section of your Hepsia CP and edit each of the domains and subdomains listed there via an intuitive interface with drop-down navigation. You could select what page should show up for every error type. The alternatives are a standard Apache server page or a page from our system, and personalized pages. If you choose the aforementioned option, you will need to type the link to every single page in your account, then save the change. The link or the kind of page which will be shown in case a user encounters an error can be modified anytime. In case you’re more experienced, you could use an .htaccess file to be able to set custom made error pages too, rather than using our integrated generator tool, and if you choose this option, the file needs to be placed inside the root directory of a given domain or subdomain.