If a particular page on an Internet site doesn't load for some reason or in case a link is not working, the visitor will see an error page with some generic message. The page shall have nothing in common with the rest of the site, which could make the visitor leave your site. A solution in such a case is a feature offered by some web hosting companies - the option to set your own personalized error pages that will have exactly the same style and design as your website and which may contain any images or text that you would like depending on the particular error. There are 4 common errors which can occur and they involve the following so-called HTTP status codes - 400, when your Internet browser sends a bad request to the server and it cannot be processed; 401, if you are supposed to log in to see some web page, but you have not done this yet; 403, if you do not have an authorization to view a specific page; and 404, when a link that you have clicked leads to a file that doesn't exist. In each of these situations, site visitors shall be able to see your custom content as opposed to a generic error page.
Custom Error Pages in Cloud Website Hosting
You'll be able to set up custom made error pages for all of your domains or subdomains. The function is supported by all cloud website hosting plans that we provide, so once you log in to the Hepsia CP and check out the Hosted Domains section, you may click on the Edit button for a domain/subdomain and in the pop-up which will be displayed, you could select the kind of error page which should appear - a default one from our system, a conventional Apache web server page or a customized one. For the last mentioned alternative, you must specify the URL to the page, so when you use custom pages, you have to upload the files inside your website hosting account first. An alternative way is to use an .htaccess file positioned in the domain or subdomain folder with a line for every error type. The exact syntax can be found in our Knowledge Base, to help you use this feature even if you do not have any previous experience.
Custom Error Pages in Semi-dedicated Servers
All of our semi-dedicated hosting plans support custom error pages, so you will be able to use this function for any domain or subdomain hosted in your account. All it will take to do that is to navigate to the Hosted Domains section of the Hepsia Control Panel, to click the Edit button related to the given domain/subdomain and to type in the link to the custom file. You are able to do this individually for every error type. You shall be able to switch back to a default error page whenever you want if required and the change shall take effect at once. Another way to achieve the same exact result is to put an .htaccess file inside the domain or subdomain folder of the site that you'd like to change and to type in a couple of lines of code inside it. If you'd like to try this method, you could copy and paste the required code from our Knowledge Base article on custom error pages, therefore you'll not need any computer programming skills or previous experience.