If a specific page on a website does not load for some reason or if a link is broken, the site visitor will see an error page with a generic message. The page shall have nothing in common with the rest of the site, that could make the visitor leave the website. A possible solution in this case is a feature offered by some web hosting service providers - the option to set up your own custom error pages that will have the same design as your site and that can contain any images or text you want dependent upon the specific error. There are 4 popular errors that can occur and they involve the following so-called HTTP status codes - 400, when your web browser sends a bad request to the server and it cannot be processed; 401, in case you are supposed to log in to see some web page, but you haven't done so yet; 403, if you do not have an authorization to see a certain page; and 404, when a link that you have clicked leads to a file that doesn't exist. In each of these cases, website visitors shall be able to see your custom content rather than a generic error page.
Custom Error Pages in Cloud Web Hosting
You will be able to set up personalized error pages for each of your domains or subdomains. The function is supported by all cloud web hosting
solutions which we offer, so after you log in to the Hepsia Control Panel and navigate to the Hosted Domains section, you may click on the Edit button for a domain/subdomain and in the pop-up which will show up, you may select the sort of error page that should show up - a default one from our system, a conventional Apache web server page or a customized one. For the aforementioned option, you need to assign the URL to the page, so when you use personalized pages, you need to upload the files inside your website hosting account first. Another way is to use an .htaccess file placed inside the domain or subdomain folder with a line for each error type. The correct syntax can be seen in our Knowledge Base, to help you use this function even if you don't have any previous experience.
Custom Error Pages in Semi-dedicated Servers
When you host your sites in a semi-dedicated server
account from us, you can set custom error pages for each of them easily via our in-house developed Hepsia hosting CP. With only several clicks in the Hosted Domains section, you'll be able to change the default setting from a system page to a tailor-made one for any of the four error types. All you need to do is provide a link to every file you have uploaded before that and then save the change. If required, you'll be able to revert this modification whenever you want and in exactly the same way. If you would like, you may use an .htaccess file as well. It must be created/uploaded in the domain or subdomain folder related to the site whose error pages you would want to change and the content for this type of file can be found in our Help article for this matter.