If a certain page on a website does not load for some reason or if a link is broken, the site 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 website. A likely solution in such a case is a function made available from some hosting providers - the option to set your own customized error pages that shall have identical design as your site and that can contain any text or images that you would like dependent upon the particular error. There are four popular errors that could take place and they involve these so-called HTTP status codes - 400, when your web browser sends a bad request to the hosting server and it cannot be processed; 401, if you are supposed to log in to see a web page, but you haven't done this yet; 403, if you do not have an authorization to see a certain page; and 404, if a link that you have clicked leads to a file that doesn't exist. In any of these cases, site visitors will be able to see your custom content instead of a generic error page.

Custom Error Pages in Website Hosting

If you buy a Linux website hosting from us, you'll be able to set customized error pages for your sites easily and quickly, as this function is part of all of our packages. As soon as you have created the files and uploaded them to your web hosting account, you can check out the Hosted Domains section of your Hepsia CP and click on the Edit button for the particular domain or subdomain. In the pop-up which will show up, you shall see drop-down options menus for all 4 kinds of errors and for each one of them you can pick an Apache default page, a generic page from our system or a tailor-made page. If you pick the 3rd option, you should just type the URL to the file you have uploaded then save the change. One other way to set personalized error pages is to set up an .htaccess file in the domain or subdomain folder and to include a couple of lines of program code in it. In case you don't have prior experience or if you are just unsure 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

All our semi-dedicated hosting support custom error pages, so you will be able to employ this function for each domain or subdomain hosted in your account. All it will take to do that is to check out the Hosted Domains section of the Hepsia Control Panel, to click on the Edit button linked to the given domain/subdomain and then to type in the link to the custom file. You could do this independently for each and every error type. You will be able to switch back to a default error page anytime if required and the change will take effect instantly. A different way to achieve the very same result is to put an .htaccess file in the domain or subdomain folder associated with the Internet site that you want to edit and to enter several lines of program code inside it. If you need to try this method, you can copy and paste the required code from our Knowledge Base article on custom error pages, hence you will not need any coding skills or previous experience.