If a certain page on an Internet site doesn't load for some reason or in case a link is broken, the visitor will 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 your website. A likely solution in cases like this is a function made available from some hosting companies - the ability to set up your own custom-made error pages which shall have the exact same layout as your Internet site and that can contain any images or text that you'd like based on the particular error. There are four popular errors that can occur and they involve the following so-called HTTP status codes - 400, when your Internet browser sends a bad request to the hosting server and it can't be processed; 401, in case you are supposed to log in to see some page, but you have not done so yet; 403, if you do not have a permission to view a particular page; and 404, if a link which you've clicked leads to a file which does not exist. In any of these scenarios, site visitors shall be able to see your customized content instead of a generic error page.
Custom Error Pages in Hosting
You can set up customized error pages for any of your domains or subdomains. The feature is supported by all hosting solutions which we offer, so as soon as you log in to your Hepsia CP and check out the Hosted Domains section, you can easily click on the Edit button for a domain/subdomain and in the pop-up which will be displayed, you may choose 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 alternative, you have to specify the URL to the page, so if you use customized pages, you have to upload the files in your website hosting account first. An alternative way is to use an .htaccess file placed inside the domain or subdomain folder with a line for each and every error type. The actual syntax can be located in our Knowledge Base, so that you can use this feature even if you do not have any previous experience.
Custom Error Pages in Semi-dedicated Servers
All our semi-dedicated servers support custom made error pages, so you will be able to use this function for each and every domain or subdomain hosted inside your account. All it will take to do this is to visit the Hosted Domains section of the Hepsia Control Panel, to click the Edit button related to the given domain/subdomain and then to enter the link to the custom-made file. You are able to do this separately for each error type. You'll be able to switch back to a generic error page whenever you want if necessary and the change shall take effect right away. An alternative way to achieve the same result is to put an .htaccess file inside the domain or subdomain folder associated with the site that you'd like to change and to enter a couple of lines of program code within it. If you want to try this method, you could copy and paste the required code from our Knowledge Base article on custom error pages, which means that you'll not need any coding skills or prior experience.