Custom Error Pages
Learn more about web site error pages, precisely when they display and why you need to utilize customized error pages.
If a specific page on an Internet site doesn't load for some reason or if a link is broken, the website visitor shall see an error page with some generic message. The page shall have nothing in common with the rest of the site, which may make the visitor leave your Internet site. A solution in such a case is a function offered by some hosting service providers - the ability to set your own personalized error pages which shall have identical design as your site and that could contain any images or text you want based on the particular error. There are four popular 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 server and it can't be processed; 401, if you are supposed to log in to see a page, but you haven't done so yet; 403, if you do not have a permission to view a certain page; and 404, in case a link which you've clicked leads to a file that does not exist. In each of these situations, site visitors will be able to see your custom made content as opposed to a generic error page.
Custom Error Pages in Shared Website Hosting
You can set up custom error pages for all of your domains or subdomains. The function is supported by all shared website hosting
solutions that we offer, so after you log in to your Hepsia Control Panel and navigate to the Hosted Domains section, you can click on the Edit button for a domain/subdomain and in the pop-up that"ll show up, you could choose the type of error page which should show up - a default one from our system, a conventional Apache server page or a customized one. For the aforementioned alternative, you have to specify the URL to the page, so when you use personalized pages, you should upload the files in your web hosting account first. An alternative way is to use an .htaccess file placed in the domain or subdomain folder with a line for every error type. The exact syntax can be seen in our Knowledge Base, so that you can use this function even if you don't have any previous experience.
Custom Error Pages in Semi-dedicated Hosting
When you host your websites in a semi-dedicated server
account from us, you may set personalized error pages for any of them easily via our in-house developed Hepsia hosting CP. With just a few mouse clicks in the Hosted Domains section, you'll be able to edit the default setting from a system page to a custom one for each of the 4 error types. All you should do is provide a link to each file which you have uploaded before that and then save the change. If needed, you will be able to revert this change anytime and in exactly the same way. If you wish, you can use an .htaccess file as well. It should be created/uploaded inside the domain or subdomain folder belonging to the site whose error pages you intend to change and the content for this type of file can be found in our Help article about this matter.