If a particular page on a website doesn't load for some reason or if a link is not working, the visitor will see an error page with a generic message. The page will have nothing in common with the rest of the website, which could make the visitor leave the site. A potential solution in this case is a feature offered by some website hosting service providers - the ability to set your own custom error pages that shall have the same design as your website and that can contain any images or text that you'd like based on the particular error. There are 4 popular errors that may occur and they involve the following so-called HTTP status codes - 400, when your Internet 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 a webpage, but you have not done this yet; 403, if you do not have an authorization to view a particular page; and 404, when a link that you have clicked leads to a file which does not exist. In any of these situations, website visitors will be able to see your personalized content as opposed to a generic error page.

Custom Error Pages in Web Hosting

When you purchase a Linux web hosting package from our company, you will be able to set custom error pages for your websites easily and quickly, as this function is part of all our solutions. Once you've created the files and uploaded them to your hosting account, you can 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 that will appear, you shall see drop-down options menus for all 4 types of errors and for each of them you can pick an Apache default page, a generic page from our system or a tailor-made page. In case you choose the third option, you should simply input the URL to the file which you have uploaded then save the change. One other way to set customized error pages is to set up an .htaccess file inside the domain or subdomain folder and to include a few lines of code in it. If you don't have prior experience or if you are just uncertain how to do this, you may simply copy and paste the code from our Knowledge Base article on that subject.

Custom Error Pages in Semi-dedicated Hosting

If you host your web sites in a semi-dedicated server account with us, you can set customized error pages for any of them with ease using our in-house made Hepsia hosting Control Panel. With just a couple of mouse clicks inside the Hosted Domains section, you are able to edit the default setting from a system page to a tailor-made one for any of the 4 error types. All you have to do is provide a link to every file that you have uploaded before that and then save the change. If necessary, you'll be able to revert this modification whenever you want and in exactly the same way. If you prefer, you may use an .htaccess file too. It should be created/uploaded within the domain or subdomain folder associated with the internet site whose error pages you would like to modify and the content for this type of file can be found in our Help article for this matter.