If a certain page on an Internet site does not load for some reason or if a link is not working, the site visitor shall see an error page with some generic message. The page will have nothing in common with the rest of the site, that can make the visitor leave your site. A solution in such a case is a function made available from some website hosting providers - the option to set up your own personalized error pages that will have identical design and style as your site and which could contain any text or images which you want dependent upon the particular error. There are 4 common errors that can take place and they involve the following so-called HTTP status codes - 400, when your browser sends a bad request to the hosting server and it cannot be processed; 401, if you're supposed to log in to see a web page, but you haven't done this yet; 403, if you do not have an authorization to view a specific page; and 404, in case a link which you've clicked leads to a file which does not exist. In any of these scenarios, site visitors shall be able to see your custom content instead of a generic error page.

Custom Error Pages in Cloud Hosting

If you obtain a cloud hosting plan from us, you shall be able to set personalized error pages for your websites easily, as this function is a part of all our solutions. The moment you have created the files and uploaded them to your hosting account, you should check out the Hosted Domains section of your Hepsia Control Panel and click on the Edit button for the particular domain or subdomain. In the pop-up which will show up, you shall see drop-down options menus for all 4 sorts of errors and for each of them you could pick an Apache default page, a generic page from our system or a tailor-made page. If you pick the 3rd option, you should just input the URL to the file that you have uploaded and save the change. One other way to set custom error pages is to set up an .htaccess file in the domain or subdomain folder and to include a couple of lines of code in it. In case you don't have preceding experience or if you're simply unsure how to do this, you could simply copy and paste the code from our Knowledge Base article on that subject.

Custom Error Pages in Semi-dedicated Servers

Including your own pages for any of the 4 error types to any site hosted inside a semi-dedicated server account with us will be really basic and won't take more than a few mouse clicks. Once you upload the files in your account, you could go to the Hosted Domains section of your Hepsia CP and edit the domains and subdomains listed there via an intuitive interface with drop-down menus. You can pick what page should display for every error type. Your options are a standard Apache web server page or a page from our system, and tailor-made pages. Should you choose the abovementioned 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 in case a user encounters an error can be changed at any time. If you are more experienced, you can use an .htaccess file in order to set customized error pages too, as an alternative to using our integrated generator tool, and in case you choose this option, the file has to be positioned inside the root directory of a specific domain or subdomain.