If a certain page on an Internet site does not load for some reason or in case a link is broken, the site visitor shall see an error page with some generic message. The page shall have nothing in common with the rest of the Internet site, that can make the visitor leave the website. A likely solution in such a case is a function offered by some website hosting service providers - the ability to set up your own custom-made error pages that shall have exactly the same design and style as your Internet site and which may contain any text or images you want depending on the specific error. There are four popular errors that can occur and they involve the following so-called HTTP status codes - 400, when your browser sends a bad request to the hosting server and it cannot be processed; 401, in case you are supposed to log in to see a web page, but you have not done so yet; 403, if you don't have a permission to see a certain page; and 404, when a link that you have clicked leads to a file that does not exist. In each of these cases, website visitors will be able to see your personalized content instead of a generic error page.
Custom Error Pages in Cloud Hosting
The custom made error pages feature is provided with every single cloud hosting
plan that we offer and you shall be able to swap all the generic pages with your own with no more than just a few clicks from your Hepsia website hosting Control Panel. You will have to create the actual files and to upload them to your account, then to set them for a particular domain or subdomain from the Hosted Domains section of the Hepsia CP. You may do this for each and every Internet site hosted inside the account separately, so that every set of custom made pages will have the same layout as the site it is part of. If needed, you can always return back to a default page from our system or to the default Apache server page. Another way to set custom error pages is to create an .htaccess file inside the domain/subdomain root folder and to add a few lines in it. If you never done this before, you may simply copy the necessary code from our Help article about this.
Custom Error Pages in Semi-dedicated Hosting
All our Linux semi-dedicated hosting packages
support personalized error pages, so you'll be able to use this feature for every single domain or subdomain hosted inside your account. All it will take to do that is to visit the Hosted Domains section of the Hepsia CP, to click on the Edit button related to the given domain/subdomain and then to input the link to the custom-made file. You can do this separately for each error type. You shall be able to switch back to a standard error page whenever you want if required and the change shall take effect right away. A different way to get the same result is to set an .htaccess file inside the domain or subdomain folder associated with the website that you want to modify and to enter several lines of code in it. If you'd like to try this method, you can copy and paste the needed code from our Knowledge Base article on custom error pages, therefore you will not need any programming skills or prior experience.