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

Custom Error Pages in Cloud Website Hosting

When you buy a Linux cloud website hosting package from our company, you will be able to set custom error pages for your sites fast and easy, because this function is a part of all of our solutions. After you've created the files and uploaded them to your website hosting account, you can go to the Hosted Domains section of your Hepsia CP and click on the Edit button for the particular domain or subdomain. Inside the pop-up that will appear, you shall see drop-down menus for all 4 types of errors and for each of them you may select an Apache default page, a generic page from our system or a tailor-made page. In case you select the third option, you should simply type the URL to the file that you have uploaded then save the change. One other way to set custom made error pages is to set up an .htaccess file in the domain or subdomain folder and to add several lines of code in it. In case you don't have prior experience or if you're simply uncertain how to do this, you could simply copy and paste the code from our Knowledge Base article on that topic.

Custom Error Pages in Semi-dedicated Hosting

Adding your personal pages for any of the four error types to any website hosted through a semi-dedicated server account with us will be very easy and won't take more than a couple of clicks. When you upload the files in your account, you can navigate to 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 menus. You could choose what page should show up for each and every error type. Your choices are a standard Apache server page or a page from our system, and customized pages. Should you select the last option, you will need to type in the link to each page inside your account, then save the change. The link or the sort of page that will be shown when a user encounters an error can be changed at any time. If you're more experienced, you may use an .htaccess file to set personalized error pages too, as an alternative to using our integrated generator software tool, and should you pick this option, the file has to be placed inside the root directory of a particular domain or subdomain.