If a specific 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 a generic message. The page will have nothing in common with the rest of the site, that may make the visitor leave your Internet site. A possible solution in cases like this is a function made available from some web hosting service providers - the ability to set up your own custom error pages which will have exactly the same layout as your website and that may contain any images or text which you want depending on the specific error. There are four standard errors which could occur and they involve the following so-called HTTP status codes - 400, when your browser sends a bad request to the web server and it cannot be processed; 401, in case you are supposed to log in to see a web page, but you haven't done this yet; 403, if you do not have a permission to view a particular page; and 404, in case a link which you've clicked leads to a file that doesn't exist. In all of these situations, website visitors will be able to see your personalized content instead of a generic error page.
Custom Error Pages in Shared Hosting
You can set up personalized error pages for each of your domains or subdomains. The feature is supported by all shared hosting plans that we provide, so as soon as you log in to the Hepsia CP and navigate to the Hosted Domains section, you can click on the Edit button for a domain/subdomain and in the pop-up which will be displayed, you may select the sort of error page which should appear - a default one from our system, a standard Apache server page or a customized one. For the latter option, you'll have to specify the URL to the page, so if you use personalized pages, you must upload the files in your web hosting account first. Another way is to use an .htaccess file placed inside the domain or subdomain folder with a line for each and every error type. The exact syntax can be seen in our Knowledge Base, so that you can use this function even if you do not have any previous experience.
Custom Error Pages in Semi-dedicated Servers
Our semi-dedicated servers support custom made error pages, thus you'll be able to use this feature for each and every domain or subdomain hosted in your account. All it takes to do that is to go to the Hosted Domains section of the Hepsia CP, to click the Edit button related to the specific domain/subdomain and then to enter the link to the custom file. You could do this independently for each error type. You will be able to switch back to a generic error page at any time if needed and the change will take effect immediately. Another way to get the same result is to set an .htaccess file inside the domain or subdomain folder of the web site which you would like to edit and to input a few lines of program code within it. If you would like to try this method, you could copy and paste the needed code from our Knowledge Base article on custom error pages, hence you won't need any programming skills or previous experience.