If a certain page on a website doesn't load for some reason or if a link is broken, the site visitor will see an error page with a generic message. The page will have nothing in common with the rest of the website, that may make the visitor leave your website. A solution in cases like this is a function made available from some web hosting companies - the option to set up your own custom error pages that will have exactly the same design as your website and which may contain any images or text that you would like dependent upon the particular error. There are four common errors which can take place and they involve the following so-called HTTP status codes - 400, when your world-wide web browser sends a bad request to the web server and it can't be processed; 401, if you are supposed to log in to see a page, but you have not done this yet; 403, if you do not have a permission to see a specific page; and 404, if a link which you've clicked leads to a file which doesn't exist. In all of these cases, visitors shall be able to see your custom content instead of a generic error page.

Custom Error Pages in Web Hosting

The custom error pages function is provided with every single web hosting package deal that we offer and you will be able to substitute all generic pages with your own with no more than a few clicks in your Hepsia hosting Control Panel. You will need to create the actual files and to upload them to your account, and then to set them for a given domain or subdomain from the Hosted Domains section of the Hepsia Control Panel. You could do this for every Internet site hosted inside the account individually, so that every set of custom made pages shall have the very same layout as the site it is part of. If needed, you may always revert back to a default page from our system or to the default Apache server page. Another way to set custom made error pages is to create an .htaccess file in the domain/subdomain root folder and to add a few lines in it. If you haven't done this before, you may simply copy the necessary code from our Help article about the subject.

Custom Error Pages in Semi-dedicated Servers

Adding your own pages for any of the four error types to any web site hosted from a semi-dedicated server account with us shall be very simple and will not take more than a few clicks. Once you upload the files inside your account, you could check out the Hosted Domains section of your Hepsia CP and edit each of the domains and subdomains listed there through an intuitive interface with drop-down navigation. You may pick what page should appear for each and every error type. The alternatives are a standard Apache server page or a page from our system, and personalized pages. If you choose the aforementioned option, you must input the link to every single page in your account, then save the change. The link or the sort of page which appears in case a user encounters an error can be modified anytime. If you're more experienced, you can use an .htaccess file to be able to set personalized error pages as well, rather than using our integrated generator software tool, and if you pick this option, the file should be located inside the root directory of a particular domain or subdomain.