If a specific page on a site does not load for some reason or if a link is not working, the site visitor will see an error page with a generic message. The page shall have nothing in common with the rest of the site, that may make the visitor leave your site. A potential solution in such a case is a function made available from some website hosting companies - the ability to set up your own custom error pages that shall have the exact same style and design as your site and that can contain any text or images you want based on the particular error. There are four popular errors which could occur and they involve the following so-called HTTP status codes - 400, when your web browser sends a bad request to the server and it cannot be processed; 401, if you're supposed to log in to see a webpage, but you haven't done this yet; 403, if you do not have a permission to view a specific page; and 404, in case a link that you have clicked leads to a file which does not exist. In each of these situations, website visitors will be able to see your customized content as opposed to a generic error page.

Custom Error Pages in Shared Hosting

When you purchase a Linux shared service from our company, you shall be able to set personalized error pages for your websites quickly and easily, since this function is a part of all our packages. As soon as you have created the files and uploaded them to your website hosting account, you can go to the Hosted Domains section of your Hepsia Control Panel and click on the Edit button for the selected domain or subdomain. In the pop-up that will show up, you will see drop-down options menus for all 4 sorts of errors and for each of them you can pick an Apache default page, a generic page from our system or a customized page. In case you choose the third option, you should simply input 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 several lines of code in it. If you do not have prior experience or if you are just unsure 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 Servers

Including your personal pages for each of the four error types to any Internet site hosted through a semi-dedicated server account with us shall be very simple and will not take more than a few clicks. As soon as you upload the files in your account, you could 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 navigation. You may choose what page should show up for every single error type. Your choices are a standard Apache server page or a page from our system, and personalized pages. Should you choose the aforementioned option, you have to input the link to every single 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 changed at any time. If you're more experienced, you can use an .htaccess file to be able to set in-house developed error pages too, as an alternative to using our integrated generator software instrument, and in case you select this option, the file should be positioned inside the root directory of a particular domain or subdomain.