If a particular page on a site doesn't load for some reason or if a link is not working, the website visitor shall see an error page with a generic message. The page shall have nothing in common with the rest of the Internet site, which could make the visitor leave your website. A likely solution in such a case is a feature made available from some web hosting companies - the option to set your own custom error pages which shall have the exact same layout as your website and which can contain any text or images which you want depending on the specific error. There are 4 common errors which could occur and they involve these so-called HTTP status codes - 400, when your browser sends a bad request to the hosting server and it can't be processed; 401, if you are supposed to log in to see some page, but you have not done this yet; 403, if you do not have an authorization to view a certain page; and 404, in case a link that you've clicked leads to a file that doesn't exist. In each of these scenarios, site visitors will be able to see your custom content as opposed to a generic error page.
Custom Error Pages in Hosting
If you purchase a hosting plan from us, you will be able to set custom made error pages for your sites quickly and easily, since this feature is part of all our solutions. Once you've created the files and uploaded them to your hosting account, you should check out the Hosted Domains section of your Hepsia CP and click on the Edit button for the specific domain or subdomain. In the pop-up which will appear, you shall see drop-down menus for all four kinds of errors and for each one of them you could choose an Apache default page, a generic page from our system or a custom page. In case you pick the 3rd option, you should just type the URL to the file that you have uploaded then save the change. Another 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. If you don't have prior experience or if you are just not sure 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 Servers
Our Linux semi-dedicated hosting plans support personalized error pages, so you shall be able to employ this function for any domain or subdomain hosted inside your account. All it takes to do that is to visit the Hosted Domains section of the Hepsia CP, to click on the Edit button associated with the specific domain/subdomain and to input the link to the custom-made file. You could do this separately for each error type. You will be able to switch back to a default error page at any time if needed and the change will take effect immediately. A different way to get the very same result is to place an .htaccess file in the domain or subdomain folder related to the Internet site that you want to modify and to enter several lines of program code inside it. If you would like to try this method, you could copy and paste the required code from our Knowledge Base article on custom error pages, so you won't need any computer programming skills or prior experience.