If a page on your website does not load, an error message will be displayed to the site visitor. As there are different errors, there are different pages that'll display, but what is typical for all of them is that they're generic and probably will have absolutely nothing that is similar to the layout of your website, which may be frustrating for any site visitor. That is the main reason why hosting companies have introduced a function referred to as Custom Error Pages. For a number of different errors, website visitors shall see your customized content, which may be informative or funny, in accordance with your personal preference, and that will match the overall design and style of your website, so the pages will not appear as if they're not part of your Internet site at all. You may use this option for a number of errors - 400 (Bad request), 401 (Unauthorized), 403 (Forbidden) and 404 (File not Found).
Custom Error Pages in Web Hosting
If you order a Linux web hosting from our company, you will be able to set customized error pages for your websites easily and quickly, because this feature is part of all of our plans. After you've created the files and uploaded them to your web hosting account, you should check out the Hosted Domains section of your Hepsia Control Panel and click on the Edit button for the specific domain or subdomain. Inside the pop-up which will appear, you shall see drop-down menus for all 4 types of errors and for each one of them you could pick an Apache default page, a generic page from our system or a personalized page. Should you choose the 3rd option, you should just input the URL to the file that you have uploaded and save the change. Another way to set customized error pages is to set up an .htaccess file inside the domain or subdomain folder and to include a couple of lines of code in it. In case you don't have prior experience or if you're just not sure how to do that, you can just copy and paste the code from our Knowledge Base article on that topic.
Custom Error Pages in Semi-dedicated Hosting
Adding your personal pages for each of the four error types to any website hosted inside a semi-dedicated server account with us will be very basic and will not take more than several clicks. When you upload the files in your account, you can go to the Hosted Domains section of your Hepsia Control Panel and edit each of the domains and subdomains listed there using an intuitive interface with drop-down menus. You may select what page should display for each and every error type. The choices are a default Apache web server page or a page from our system, and personalized pages. If you select the last option, you will need to type in the link to each page in your account, then save the change. The link or the kind of page which shows up in case a user encounters an error can be changed at any time. If you are more experienced, you may use an .htaccess file to be able to set in-house developed error pages too, as an alternative to using our integrated generator software tool, and should you pick this option, the file needs to be positioned inside the root directory of a particular domain or subdomain.