If a particular page on an Internet site doesn't load for some reason or if a link is not functioning, the website visitor shall see an error page with some generic message. The page shall have nothing in common with the rest of the website, which can make the visitor leave the site. A potential solution in this case is a feature offered by some website hosting companies - the option to set your own custom error pages that shall have exactly the same layout as your Internet site and that could contain any images or text that you would like depending on the specific error. There are four well-known errors which can occur and they involve these so-called HTTP status codes - 400, when your world-wide web browser sends a bad request to the hosting server and it can't be processed; 401, if you're supposed to log in to see some webpage, but you haven't done so yet; 403, if you do not have an authorization to view a particular page; and 404, if a link which you've clicked leads to a file that doesn't exist. In all of these scenarios, visitors shall be able to see your customized content as opposed to a generic error page.

Custom Error Pages in Hosting

If you obtain a hosting package from our company, you'll be able to set custom error pages for your Internet sites easily and quickly, since this function is part of all of our solutions. The moment you have created the files and uploaded them to your hosting account, you can 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 be displayed, you'll see drop-down options menus for all four sorts of errors and for each of them you may pick an Apache default page, a generic page from our system or a customized page. In case you pick the 3rd option, you should just enter the URL to the file that you've uploaded and save the change. One other way to set custom made error pages is to set up an .htaccess file in the domain or subdomain folder and to include a few lines of program code in it. If you do not have preceding experience or if you're simply uncertain how to do this, you could simply copy/paste the code from our Knowledge Base article on that subject.

Custom Error Pages in Semi-dedicated Hosting

Including your pages for any of the 4 error types to any website hosted in a semi-dedicated server account with us will be really simple and shall not take more than a couple of mouse clicks. After you upload the files inside your account, you could go to the Hosted Domains section of your Hepsia CP and edit any of the domains and subdomains listed there via an intuitive interface with drop-down navigation. You could pick what page should appear for every error type. The alternatives are a default Apache server page or a page from our system, and custom pages. In case you pick the abovementioned option, you have to enter the link to each page in your account, then save the change. The link or the type of page that will be shown if a user encounters an error can be modified at any time. If you are more experienced, you can use an .htaccess file in order to set in-house made error pages too, as opposed to using our integrated generator tool, and should you choose this option, the file has to be located in the root directory of a given domain or subdomain.