Custom Error Pages
Learn what a Custom Error Page is, what function does it have and the way to set one.
If a specific page on a site does not load for some reason or in case a link is not working, the visitor shall see an error page with some generic message. The page shall have nothing in common with the rest of the Internet site, which may make the visitor leave your site. A solution in such a case is a function offered by some hosting providers - the option to set up your own custom-made error pages which shall have the exact same layout as your website and that can contain any text or images that you would like based on the specific error. There are four standard errors that may occur and they involve the following so-called HTTP status codes - 400, when your web browser sends a bad request to the web server and it can't be processed; 401, in case you are supposed to log in to see a page, but you haven't done this yet; 403, if you do not have a permission to see a certain page; and 404, when a link which you've clicked leads to a file which doesn't exist. In all of these scenarios, visitors shall be able to see your custom made content as opposed to a generic error page.
Custom Error Pages in Hosting
You will be able to set up custom made error pages for any of your domains or subdomains. The function is supported by all hosting solutions which we offer, so after you log in to the 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 appear, you may choose the sort of error page that should appear - a default one from our system, a typical Apache server page or a custom one. For the aforementioned option, you'll have to assign the URL to the page, so if you use personalized pages, you need to upload the files in your web hosting account first. Another way is to use an .htaccess file located inside 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 function even if you do not have any previous experience.