If a certain page on a website does not load for some reason or if a link is not working, the website visitor will see an error page with some generic message. The page will have nothing in common with the rest of the website, that can make the visitor leave the website. A potential solution in such a case is a function offered by some website hosting providers - the ability to set up your own custom error pages which shall have identical style and design as your site and that can contain any text or images you want based on the particular error. There are four well-known errors that could occur and they involve these particular so-called HTTP status codes - 400, when your Internet browser sends a bad request to the web server and it can't be processed; 401, in case you are supposed to log in to see a page, but you haven't done so yet; 403, if you do not have a permission to see a particular page; and 404, when a link which you have clicked leads to a file that does not exist. In any of these scenarios, site visitors will be able to see your customized content rather than a generic error page.

Custom Error Pages in Hosting

If you buy a hosting from us, you'll be able to set custom error pages for your Internet sites easily and quickly, since this function is part of all of our plans. Once you have 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 that will show up, you will see drop-down options menus for all four types of errors and for each of them you can pick an Apache default page, a generic page from our system or a personalized page. Should you pick the third option, you should simply enter the URL to the file that you've uploaded then save the change. One other way to set custom made error pages is to set up an .htaccess file inside the domain or subdomain folder and to add a couple of lines of program code in it. If you do not have previous experience or if you're just not sure 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 Servers

All semi-dedicated servers that we offer support custom error pages and it shall not take more than several mouse clicks inside your Hepsia web hosting Control Panel to use this functionality. The option is available in the Hosted Domains section of your Control Panel where you'll need to type in the links to the custom-made files via very simple drop-down menus and an intuitive interface. Keep in mind, you should upload them in your account before that. In case you do not need to use this feature at some point, you could disable it just as quickly and pick an Apache server page or a default page from our system to be viewable when your visitors encounter an error. If you'd like to, you could also use an .htaccess file to allow the customized error pages. The file needs to contain a specific line of code and a link for each and every error type and you may find an example of the whole content for all four error types in our Help section.