If a specific page on a site doesn't load for some reason or in case a link is broken, the website visitor shall see an error page with some generic message. The page shall have nothing in common with the rest of the Internet site, that may make the visitor leave the website. A solution in cases like this is a feature made available from some web hosting service providers - the ability to set your own custom-made error pages which will have the exact same style and design as your Internet site and which can contain any text or images you want dependent upon the particular error. There are 4 standard errors that can occur and they involve these so-called HTTP status codes - 400, when your web browser sends a bad request to the hosting server and it can't be processed; 401, in case you are supposed to log in to see some page, but you have not done this yet; 403, if you do not have a permission to view a specific page; and 404, if a link that you've clicked leads to a file that doesn't exist. In any of these scenarios, visitors shall be able to see your custom content as opposed to a generic error page.

Custom Error Pages in Web Hosting

If you get a Linux web hosting service from our company, you shall be able to set custom made error pages for your Internet sites easily, because this feature is a part of all our plans. As soon as you have created the files and uploaded them to your web hosting account, you should check out the Hosted Domains section of your Hepsia CP and click on the Edit button for the specific domain or subdomain. Inside the pop-up which will show up, you'll see drop-down options menus for all four sorts of errors and for each one of them you could choose an Apache default page, a generic page from our system or a custom made page. Should you select the 3rd option, you should simply type the URL to the file you have uploaded then save the change. A different way to set customized error pages is to set up an .htaccess file in the domain or subdomain folder and to add several lines of program code in it. In case you don't have preceding experience or if you're just uncertain how to do this, you may simply copy/paste the code from our Knowledge Base article on that topic.

Custom Error Pages in Semi-dedicated Servers

Adding your own pages for each of the 4 error types to any website hosted inside a semi-dedicated server account with us will be really basic 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 the domains and subdomains listed there via an intuitive interface with drop-down menus. You could select what page should appear for every error type. The choices are a standard Apache web server page or a page from our system, and customized pages. Should you choose the aforementioned option, you will need to input the link to each and every page in your account, then save the change. The link or the kind of page that will be shown when a user encounters an error can be changed whenever you want. In case you’re more experienced, you can use an .htaccess file to be able to set in-house made error pages too, instead of using our integrated generator tool, and should you choose this option, the file should be located in the root directory of a given domain or subdomain.