If a certain page on an Internet site doesn't load for some reason or in case a link is not functioning, the website visitor shall see an error page with some generic message. The page will have nothing in common with the rest of the site, which can make the visitor leave the site. A solution in cases like this is a function offered by some website hosting companies - the ability to set your own custom-made error pages that shall have the exact same style and design as your Internet site and which may contain any text or images you want dependent upon the particular error. There are 4 popular errors that can occur and they involve the following so-called HTTP status codes - 400, when your web browser sends a bad request to the server and it can't be processed; 401, if you are supposed to log in to see some page, but you haven't done this yet; 403, if you do not have an authorization to view a specific page; and 404, in case a link which you've clicked leads to a file which doesn't exist. In any of these cases, website visitors will be able to see your personalized content instead of a generic error page.
Custom Error Pages in Cloud Web Hosting
If you buy a Linux cloud web hosting from us, you will be able to set custom error pages for your sites fast and easy, since this feature is part of all of our plans. As soon as you've 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 specific domain or subdomain. In the pop-up that will be displayed, you'll see drop-down menus for all four sorts of errors and for each one of them you could pick an Apache default page, a generic page from our system or a custom made page. Should you select the third option, you should only enter the URL to the file that you've uploaded then save the change. A different way to set personalized error pages is to set up an .htaccess file in the domain or subdomain folder and to add several lines of code in it. If you don't have prior experience or if you're just unsure how to do this, you could just copy and paste the code from our Knowledge Base article on that subject.
Custom Error Pages in Semi-dedicated Servers
When you host your web sites in a semi-dedicated server account from us, you could set custom made error pages for any of them with ease using our in-house created Hepsia hosting Control Panel. With just a couple of mouse clicks inside the Hosted Domains section, you are able to change the default setting from a system page to a custom one for any of the 4 error types. All you should do is provide a link to each and every file that you have uploaded before that and then save the change. If required, you shall be able to revert this modification whenever you want and in exactly the same way. If you would like, you could use an .htaccess file too. It should be created/uploaded inside the domain or subdomain folder associated with the site whose error pages you would like to modify and the content for this kind of file can be found in our Help article about this matter.