If a certain page on an Internet site does not load for some reason or in case a link is not working, the website visitor shall see an error page with some generic message. The page shall have nothing in common with the rest of the website, which can make the visitor leave the website. A potential solution in cases like this is a function made available from some web hosting companies - the option to set up your own custom-made error pages that will have exactly the same design as your website and that could contain any text or images that you'd like based on the specific error. There are 4 well-known errors that can take place 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're supposed to log in to see some webpage, but you haven't done this yet; 403, if you do not have a permission to see a certain page; and 404, if a link that you've clicked leads to a file which doesn't exist. In each of these situations, site visitors shall be able to see your personalized content instead of a generic error page.
Custom Error Pages in Cloud Website Hosting
When you get a Linux cloud website hosting
from us, you shall be able to set personalized error pages for your sites easily and quickly, since this feature is part of all our plans. As soon as you have created the files and uploaded them to your hosting account, you can go to the Hosted Domains section of your Hepsia Control Panel and click on the Edit button for the particular domain or subdomain. In the pop-up that will appear, you will see drop-down options menus for all 4 sorts of errors and for each of them you may select an Apache default page, a generic page from our system or a custom page. Should you pick the third option, you should just enter the URL to the file you have uploaded then save the change. One other way to set custom error pages is to create an .htaccess file inside the domain or subdomain folder and to include a few lines of program code in it. If you do not have prior experience or if you are simply unsure how to do that, you could just copy and paste the code from our Knowledge Base article on that matter.
Custom Error Pages in Semi-dedicated Hosting
If you host your Internet sites in a semi-dedicated server
account with our company, you could set custom error pages for each of them easily using our custom Hepsia hosting CP. With a couple of clicks in the Hosted Domains section, you are able to change the default setting from a system page to a customized one for each of the 4 error types. All you should do is provide a link to each file that you have uploaded before that and then save the change. If necessary, you shall be able to revert this change at any time and in exactly the same way. If you would like, you could use an .htaccess file too. It must be created/uploaded inside the domain or subdomain folder linked to the site whose error pages you intend to alter and the content for this type of file can be found in our Help article about this matter.