If a particular page on an Internet site doesn't load for some reason or if a link is broken, the visitor shall see an error page with some generic message. The page shall have nothing in common with the rest of the website, that may make the visitor leave your website. A potential solution in cases like this is a function offered by some web hosting companies - the ability to set your own custom error pages that will have the exact same style and design as your Internet site and which could contain any images or text which you want dependent upon the specific error. There are 4 standard errors that may occur and they involve these so-called HTTP status codes - 400, when your web browser sends a bad request to the web server and it can't be processed; 401, if you're supposed to log in to see a webpage, but you have not done this yet; 403, if you do not have a permission to see a certain page; and 404, if a link which you have clicked leads to a file which doesn't exist. In all of these situations, visitors shall be able to see your custom content rather than a generic error page.
Custom Error Pages in Shared Website Hosting
The custom error pages function is offered with every shared website hosting plan which we offer and you will be able to substitute the generic pages with your own with no more than a couple of clicks in your Hepsia hosting CP. You shall have to produce 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 Control Panel. You may do this for every Internet site hosted inside the account separately, so that each set of customized pages shall have identical layout as the Internet site it is part of. If necessary, you can always return back to a default page from our system or to the default Apache server page. A different way to set custom error pages is to create an .htaccess file in the domain/subdomain root folder and to include a few lines in it. If you have not done this before, you could simply copy the required program code from our Help article about this.
Custom Error Pages in Semi-dedicated Hosting
Our Linux semi-dedicated packages support customized error pages, so you'll be able to use this function for each and every domain or subdomain hosted in your account. All it will take to do this is to check out the Hosted Domains section of the Hepsia CP, to click the Edit button related to the given domain/subdomain and then to input the link to the custom file. You are able to do this separately for each and every error type. You will be able to switch back to a default error page whenever you want if necessary and the change will take effect straightaway. An alternative way to get the same exact result is to put an .htaccess file inside the domain or subdomain folder related to the site which you'd like to modify and to input a few lines of code in it. If you would like to try this method, you may copy and paste the needed code from our Knowledge Base article on custom error pages, so you will not need any computer programming skills or prior experience.