Custom Error Pages
Learn what a Custom Error Page is, what function does it have and how to set up one.
If you have looked at a lot of sites, you've probably stumbled upon some error message now and again. An error could occur when the website hosting server cannot process a request (Error 400), if you must log in in order to see some content and you have not done so (Error 401), if you aren't permitted to access a page (Error 403) or if a link leads to a file which is not on the web server (Error 404). Getting such messages can sometimes be aggravating since the pages have absolutely nothing in common with the actual Internet site. That’s why some web hosting service providers allow you to use your own error pages that'll match the design of your own site and which could have any content which you'd like - information why the error has occurred, a suggestion how to handle it or even some humorous remark. This sort of feature can help you keep the visitor on the website whatever the error or the reason for it.
-
Custom Error Pages in Shared Hosting
The custom error pages function is provided with every single
shared hosting package which we offer and you'll be able to substitute the generic pages with your own with no more than a few mouse clicks in your Hepsia website hosting CP. You will need to develop the actual files and to upload them to your account, then to set them for a specific domain or subdomain via the Hosted Domains section of the Hepsia CP. You may do this for every Internet site hosted in the account individually, so that each set of customized pages shall have identical layout as the site it's part of. When necessary, you could always go back to a default page from our system or to a default Apache server page. Another way to set customized error pages is to create an .htaccess file inside the domain/subdomain root folder and to include a few lines in it. If you haven't done this before, you may simply copy the needed code from our Help article about the subject.
-
Custom Error Pages in Semi-dedicated Servers
Incorporating your own pages for any of the 4 error types to any web site hosted from a
semi-dedicated server account with us shall be very easy and won't take more than several mouse clicks. When you upload the files inside your account, you can check out the Hosted Domains section of your Hepsia CP and edit the domains and subdomains listed there using an intuitive interface with drop-down menus. You can choose what page should display for each error type. The choices are a standard Apache web server page or a page from our system, and custom made pages. In case you select the aforementioned option, you must input the link to every single page in your account, then save the change. The link or the kind of page which will appear if a user encounters an error can be changed at any time. In case you are more experienced, you may use an .htaccess file to be able to set customized error pages as well, instead of using our integrated generator tool, and in case you select this option, the file must be positioned inside the root directory of a given domain or subdomain.