Custom Error Pages
Learn what a Custom Error Page is, what function does it serve and how to make one.
If a certain page on an Internet site does not load for some reason or in case a link is broken, the site visitor shall see an error page with a generic message. The page will have nothing in common with the rest of the website, that may make the visitor leave the website. A possible solution in such a case is a feature offered by some web hosting service providers - the ability to set your own personalized error pages which will have identical design and style as your website and which could contain any images or text you want based on the particular error. There are 4 common errors which can take place and they involve the following so-called HTTP status codes - 400, when your web browser sends a bad request to the hosting server and it can't be processed; 401, if you are supposed to log in to see some page, but you haven't done this yet; 403, if you do not have a permission to view a certain page; and 404, in case a link that you've clicked leads to a file that doesn't exist. In any of these scenarios, site visitors shall be able to see your customized content as opposed to a generic error page.
-
Custom Error Pages in Hosting
You can set up customized error pages for each of your domains or subdomains. The function is supported by all
hosting solutions which we provide, so after you log in to your Hepsia CP and go to the Hosted Domains section, you can easily click on the Edit button for a domain/subdomain and in the pop-up that"ll appear, you could pick 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 assign the URL to the page, so when you use personalized pages, you need to upload the files in your hosting account first. Another way is to use an .htaccess file placed in the domain or subdomain folder with a line for every error type. The precise syntax can be found 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 Servers
Incorporating your pages for each of the 4 error types to any Internet site hosted in a
semi-dedicated server account with us will be very easy and won't take more than a couple of mouse clicks. Once you upload the files inside your account, you can go to the Hosted Domains section of your Hepsia Control Panel and edit each of the domains and subdomains listed there through an intuitive interface with drop-down navigation. You can select what page should appear for every error type. The options are a default Apache server page or a page from our system, and tailor-made pages. In case you choose the last option, you have to enter the link to every page inside your account, then save the change. The link or the type of page which appears in case a user encounters an error can be changed anytime. If you are more experienced, you could use an .htaccess file to be able to set in-house developed error pages as well, as an alternative to using our integrated generator tool, and in case you pick this option, the file should be placed inside the root directory of a particular domain or subdomain.