If a certain page on a website doesn't load for some reason or if a link is not working, the visitor shall see an error page with some generic message. The page will have nothing in common with the rest of the website, that can make the visitor leave your website. A likely solution in cases like this is a function offered by some hosting providers - the ability to set up your own custom error pages that will have the exact same style and design as your site and that may contain any images or text that you'd like dependent upon the particular error. There are four well-known errors which could take place 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're supposed to log in to see some page, but you haven't done so yet; 403, if you don't have a permission to view a particular page; and 404, when a link that you have clicked leads to a file that doesn't exist. In each of these situations, visitors shall be able to see your custom made content as opposed to a generic error page.
Custom Error Pages in Hosting
You can set up custom error pages for all of your domains or subdomains. The function is supported by all hosting plans which we provide, so after you log in to the Hepsia CP and visit the Hosted Domains section, you can easily click on the Edit button for a domain/subdomain and in the pop-up which will appear, you could pick the sort of error page that should show up - a default one from our system, a standard Apache web server page or a custom one. For the latter option, you need to assign the URL to the page, so when you use custom made pages, you need to upload the files inside your hosting account first. Another way is to use an .htaccess file placed in the domain or subdomain folder with a line for each error type. The actual syntax can be seen in our Knowledge Base, so that you can use this feature even if you don't have any previous experience.