If a certain page on a site does not load for some reason or if a link is not working, the visitor shall 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 website. A likely solution in cases like this is a feature offered by some web hosting providers - the option to set up your own personalized error pages that will have exactly the same design and style as your Internet site and that could contain any images or text that you would like based on the particular error. There are four popular errors that may take place and they involve these so-called HTTP status codes - 400, when your web browser sends a bad request to the server and it can't be processed; 401, in case you are supposed to log in to see some web page, but you haven't done so yet; 403, if you don't have an authorization to view a certain page; and 404, if a link which you've clicked leads to a file which doesn't exist. In each of these scenarios, site visitors will be able to see your custom made content rather than a generic error page.
Custom Error Pages in Website Hosting
If you obtain a Linux website hosting package from our company, you shall be able to set custom error pages for your Internet sites easily, since this feature is a part of all of our plans. The moment you have created the files and uploaded them to your website hosting account, you should check out the Hosted Domains section of your Hepsia Control Panel and click on the Edit button for the specific domain or subdomain. Inside the pop-up which will appear, you shall see drop-down options menus for all 4 kinds of errors and for each of them you could choose an Apache default page, a generic page from our system or a customized page. If you choose the 3rd option, you should only input the URL to the file that you have uploaded then save the change. One other way to set personalized error pages is to create an .htaccess file in the domain or subdomain folder and to add a couple of lines of code in it. If you don't have prior experience or if you are simply not sure how to do that, you may simply copy/paste the code from our Knowledge Base article on that subject.
Custom Error Pages in Semi-dedicated Hosting
Our Linux semi-dedicated packages support personalized error pages, so you shall be able to use this feature for every single domain or subdomain hosted inside your account. All it takes to do that is to check out the Hosted Domains section of the Hepsia Control Panel, to click on the Edit button associated with the particular domain/subdomain and then to type in the link to the custom file. You could do this separately for each and every error type. You'll be able to switch back to a default error page whenever you want if required and the change shall take effect straightaway. An alternative way to achieve the same result is to place an .htaccess file inside the domain or subdomain folder related to the site that you would like to modify and to type in a few lines of code inside it. If you would like to try this method, you may copy and paste the required code from our Knowledge Base article on custom error pages, which means that you'll not need any programming skills or previous experience.