If a particular page on an Internet site does not load for some reason or if a link is broken, the website visitor shall see an error page with a generic message. The page shall have nothing in common with the rest of the website, which may make the visitor leave your Internet site. A likely solution in cases like this is a function offered by some web hosting companies - the option to set up your own custom error pages which shall have exactly the same layout as your Internet site and which can contain any images or text that you would like depending on the specific error. There are four well-known errors which can occur and they involve the following so-called HTTP status codes - 400, when your browser sends a bad request to the web server and it cannot be processed; 401, if you are supposed to log in to see some webpage, but you haven't done so yet; 403, if you do not have a permission to view a specific page; and 404, in case a link that you have clicked leads to a file that does not exist. In all of these scenarios, visitors will be able to see your custom content rather than a generic error page.
Custom Error Pages in Cloud Hosting
You will be able to set up customized error pages for any of your domains or subdomains. The function is supported by all cloud hosting package which we offer, so when you log in to your Hepsia CP and navigate to the Hosted Domains section, you can click on the Edit button for a domain/subdomain and in the pop-up that will appear, you could choose 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 latter option, you must specify the URL to the page, so when you use custom pages, you should upload the files in your Internet 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 actual syntax can be found in our Knowledge Base, to help you use this function even if you do not have any previous experience.