Each time a page on your Internet site doesn't load, an error message shall be shown to the website visitor. Because there are different errors, there are different pages that'll show up, but what is common for all of them is that they are generic and in all probability shall have absolutely nothing that is similar to the layout of your site, which could be aggravating for any website visitor. This is the reason why website hosting providers have introduced a feature known as Custom Error Pages. For a variety of different errors, site visitors shall see your custom content, which can be informative or amusing, depending on your taste, and which shall match the overall layout of your Internet site, so the pages will not look like they're not part of your Internet site at all. You can use this option for numerous errors - 400 (Bad request), 401 (Unauthorized), 403 (Forbidden) and 404 (File not Found).
Custom Error Pages in Shared Hosting
If you get a Linux shared hosting service from our company, you shall be able to set custom made error pages for your sites fast and easy, as this feature is part of all of our solutions. The moment you have created the files and uploaded them to your web hosting account, you should check out the Hosted Domains section of your Hepsia CP and click on the Edit button for the selected domain or subdomain. Inside the pop-up that will be displayed, you shall see drop-down options 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 customized page. Should you choose the third option, you should simply input the URL to the file you have uploaded then save the change. One other way to set customized error pages is to set up an .htaccess file inside the domain or subdomain folder and to add several lines of program code in it. In case you don't have previous experience or if you're just not sure how to do that, you can simply copy and paste the code from our Knowledge Base article on that subject.
Custom Error Pages in Semi-dedicated Servers
Including your pages for any of the four error types to any website hosted through a semi-dedicated server account with us shall be very easy and will not take more than a couple of clicks. After you upload the files inside your account, you could go to the Hosted Domains section of your Hepsia Control Panel and edit any of the domains and subdomains listed there via an intuitive interface with drop-down menus. You can pick what page should appear for each error type. The alternatives are a standard Apache web server page or a page from our system, and custom made pages. If you pick the abovementioned option, you will need to input the link to each and every page in your account, then save the change. The link or the sort of page that shows up when a user encounters an error can be modified whenever you want. If you're more experienced, you can use an .htaccess file so as to set in-house developed error pages as well, instead of using our integrated generator instrument, and in case you choose this option, the file should be located inside the root directory of a given domain or subdomain.