If a specific page on a site does not load for some reason or in case a link is broken, the 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 can make the visitor leave the website. A possible solution in cases like this is a function offered by some website hosting providers - the ability to set your own custom error pages which shall have the same layout as your website and that may contain any images or text that you would like depending on the particular error. There are four common errors which could take place and they involve these so-called HTTP status codes - 400, when your world-wide web browser sends a bad request to the web server and it cannot be processed; 401, if you are supposed to log in to see a web page, but you have not done this yet; 403, if you don't have a permission to view a specific page; and 404, in case a link that you've clicked leads to a file that doesn't exist. In any of these situations, visitors shall be able to see your custom content instead of a generic error page.

Custom Error Pages in Cloud Hosting

When you acquire a Linux cloud hosting service from our company, you will be able to set custom error pages for your sites easily and quickly, because this feature is a part of all of our plans. After you've created the files and uploaded them to your website hosting account, you should check out the Hosted Domains section of your Hepsia CP and click on the Edit button for the selected domain or subdomain. In the pop-up which will be displayed, you shall see drop-down menus for all four kinds of errors and for each of them you may pick an Apache default page, a generic page from our system or a personalized page. Should you pick the 3rd option, you should only input the URL to the file that you have uploaded and save the change. One other way to set personalized error pages is to create an .htaccess file inside the domain or subdomain folder and to add several lines of code in it. If you don't have previous experience or if you're simply unsure how to do that, you can simply copy and paste the code from our Knowledge Base article on that matter.

Custom Error Pages in Semi-dedicated Hosting

When you host your web sites in a semi-dedicated server account with us, you could set tailor-made error pages for each of them with ease using our custom Hepsia hosting Control Panel. With several clicks in the Hosted Domains section, you'll be able to change the default setting from a system page to a personalized one for each of the 4 error types. All you should do is supply a link to every single file you have uploaded before that and then save the change. If required, you will be able to revert this customization anytime and in exactly the same way. If you would like, you can use an .htaccess file too. It has to be created/uploaded within the domain or subdomain folder related to the site whose error pages you want to modify and the content for this sort of file can be found in our Help article for this matter.