If a certain page on an Internet site does not 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 will have nothing in common with the rest of the site, that may make the visitor leave your site. A potential solution in cases like this is a function made available from some website hosting providers - the option to set up your own customized error pages that shall have identical style and design as your website and that can contain any text or images that you'd like based on the specific error. There are 4 common errors which may occur and they involve the following so-called HTTP status codes - 400, when your Internet browser sends a bad request to the server and it can't be processed; 401, in case you are supposed to log in to see a page, but you haven't done so yet; 403, if you don't have a permission to view a certain page; and 404, if a link which you've clicked leads to a file that does not exist. In all of these situations, visitors shall be able to see your customized content as opposed to a generic error page.

Custom Error Pages in Shared Web Hosting

If you order a Linux shared web hosting service from us, you will be able to set customized error pages for your Internet sites easily, since this function is part of all our plans. The moment you've created the files and uploaded them to your website hosting account, you can go to the Hosted Domains section of your Hepsia Control Panel and click on the Edit button for the selected domain or subdomain. Inside the pop-up that will be displayed, you'll see drop-down menus for all four kinds of errors and for each of them you can select an Apache default page, a generic page from our system or a tailor-made page. In case you choose the 3rd option, you should only enter the URL to the file that you have uploaded then save the change. Another way to set custom error pages is to create 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 previous experience or if you are simply uncertain how to do that, you may just copy and paste the code from our Knowledge Base article on that subject.

Custom Error Pages in Semi-dedicated Hosting

Adding your own pages for each of the four error types to any Internet site hosted through a semi-dedicated server account with us will be really easy and will not take more than a couple of clicks. After you upload the files to your account, you could check out the Hosted Domains section of your Hepsia CP and edit any of the domains and subdomains listed there using an intuitive interface with drop-down menus. You may choose what page should display for each and every error type. Your choices are a standard Apache web server page or a page from our system, and customized pages. Should you select the abovementioned option, you must input the link to every page inside your account, then save the change. The link or the type of page that appears in case a user encounters an error can be modified at any time. In case you are more experienced, you can use an .htaccess file so as to set in-house developed error pages too, instead of using our integrated generator tool, and should you select this option, the file must be positioned inside the root directory of a specific domain or subdomain.