If a certain page on a site does not load for some reason or in case a link is broken, the site visitor shall see an error page with a generic message. The page shall have nothing in common with the rest of the site, that can make the visitor leave your website. A likely solution in cases like this is a feature made available from some website hosting companies - the option to set up your own custom error pages which will have the exact same style and design as your website and which could contain any text or images that you would like dependent upon the specific error. There are 4 standard errors that may take place and they involve these 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, in case you are supposed to log in to see some webpage, but you have not done so yet; 403, if you don't have an authorization to see a specific page; and 404, if a link that you've clicked leads to a file which does not exist. In each of these cases, visitors shall be able to see your customized content rather than a generic error page.

Custom Error Pages in Website Hosting

If you buy a Linux website hosting from our company, you'll be able to set customized error pages for your sites quickly and easily, since this function is a part of all of our packages. After you have created the files and uploaded them to your web hosting account, you can go to 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 that will show up, you will see drop-down options menus for all four types of errors and for each one of them you may choose an Apache default page, a generic page from our system or a customized page. If you pick the third option, you should just enter 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 inside the domain or subdomain folder and to add a couple of lines of code in it. In case you don't have preceding experience or if you are just not sure how to do that, you can simply copy/paste the code from our Knowledge Base article on that subject.

Custom Error Pages in Semi-dedicated Hosting

Incorporating your own pages for any of the four error types to any site hosted inside a semi-dedicated server account with us will be very basic and will not take more than several mouse clicks. As soon as 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 through an intuitive interface with drop-down navigation. You could choose what page should appear for every error type. Your choices are a default Apache server page or a page from our system, and custom pages. In case you select 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 will be shown if a user encounters an error can be changed whenever you want. In case you’re more experienced, you may use an .htaccess file in order to set custom made error pages too, as opposed to using our integrated generator tool, and should you choose this option, the file must be placed inside the root directory of a particular domain or subdomain.