When a page on your site doesn't load, an error message will be shown to the visitor. Because there are different errors, there are different pages that will appear, but what is common for all of them is that they're generic and probably will have nothing in common with the design of your Internet site, which may be aggravating for any website visitor. This is the reason why web hosting companies have introduced a function known as Custom Error Pages. For a wide variety of different errors, site visitors shall see your custom content, which could be informative or witty, in accordance with your choice, and that will match the overall design and style of your website, so the pages shall not appear as if they aren't part of your Internet site at all. You can use this option for a variety of errors - 400 (Bad request), 401 (Unauthorized), 403 (Forbidden) and 404 (File not Found).

Custom Error Pages in Shared Hosting

When you purchase a shared hosting from us, you'll be able to set custom error pages for your Internet sites easily, since this function is a part of all our packages. The moment you have created the files and uploaded them to your website 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 which will show up, you shall see drop-down options menus for all 4 kinds of errors and for each of them you can select an Apache default page, a generic page from our system or a tailor-made page. In case you choose the third option, you should just type the URL to the file that you have uploaded and save the change. A different way to set customized error pages is to create an .htaccess file in the domain or subdomain folder and to include several lines of code in it. If you do not have preceding experience or if you are simply unsure how to do this, you can simply copy/paste the code from our Knowledge Base article on that matter.

Custom Error Pages in Semi-dedicated Servers

Incorporating your personal pages for any of the 4 error types to any site hosted in a semi-dedicated server account with us will be very easy and won't take more than a few clicks. As soon as you upload the files inside your account, you can check out the Hosted Domains section of your Hepsia CP and edit any of the domains and subdomains listed there through an intuitive interface with drop-down menus. You may select what page should appear for each error type. The alternatives are a default Apache server page or a page from our system, and custom pages. If you choose the abovementioned option, you need to type in the link to every single page inside your account, then save the change. The link or the kind of page that will be shown if a user encounters an error can be changed at any time. If you're more experienced, you could use an .htaccess file so as to set tailor-made error pages as well, as opposed to using our integrated generator tool, and if you pick this option, the file should be placed in the root directory of a given domain or subdomain.