If a specific page on an Internet site doesn't load for some reason or in case a link is broken, the website visitor will see an error page with a generic message. The page shall have nothing in common with the rest of the website, which may make the visitor leave your Internet site. A possible solution in such a case is a function offered by some web hosting providers - the option to set up your own personalized error pages that will have identical design and style as your website and which may contain any images or text which you want depending on the specific error. There are four common errors which 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, in case you are supposed to log in to see a page, but you have not done so yet; 403, if you don't have an authorization to view a certain page; and 404, in case a link that you have clicked leads to a file which doesn't exist. In all of these cases, site visitors shall be able to see your personalized content as opposed to a generic error page.

Custom Error Pages in Website Hosting

If you buy a Linux website hosting from us, you shall be able to set personalized error pages for your Internet sites easily and quickly, since this function is a part of all our packages. As soon as you've 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 selected domain or subdomain. Inside the pop-up that will show up, you'll see drop-down menus for all 4 kinds of errors and for each of them you can select an Apache default page, a generic page from our system or a customized page. Should you select the third option, you should only input the URL to the file you have uploaded then save the change. One other way to set custom error pages is to create an .htaccess file inside the domain or subdomain folder and to include a few lines of program code in it. In case you don't have prior experience or if you are simply uncertain how to do this, you can simply copy/paste the code from our Knowledge Base article on that subject.

Custom Error Pages in Semi-dedicated Hosting

When you host your web sites in a semi-dedicated server account with us, you could set personalized error pages for each of them easily through our in-house built Hepsia hosting CP. With just a few mouse clicks in the Hosted Domains section, you could edit the default setting from a system page to a custom one for any of the four error types. All you should do is provide a link to each file which you have uploaded before that and then save the change. If required, you shall be able to revert this modification anytime and in exactly the same way. If you prefer, you may use an .htaccess file as well. It should be created/uploaded in the domain or subdomain folder belonging to the internet site whose error pages you would like to change and the content for this type of file can be found in our Help article about this matter.