Custom Error Pages
Learn what a Custom Error Page is, what role does it serve and the way to create one.
If you have checked out many websites, you've probably stumbled upon some error message now and again. An error can occur in case the hosting server cannot process a request (Error 400), if you need to log in so as to see some content and you have not done so (Error 401), if you are not able to access a page (Error 403) or when a link leads to a file which is not on the hosting server (Error 404). Getting this kind of messages may often be annoying as the pages have absolutely nothing in common with the actual Internet site. That’s why some website hosting service providers permit you to use your own error pages that'll match the design of your own site and which can have any content which you would like - details why the error has taken place, a suggestion how to proceed or even some humorous remark. Such a feature will help you keep the visitor on the website regardless of the error and the reason for it.
Custom Error Pages in Shared Hosting
You will be able to set up customized error pages for each of your domains or subdomains. The feature is supported by all shared hosting
solutions that we provide, so once you log in to your Hepsia Control Panel and go to the Hosted Domains section, you may click on the Edit button for a domain/subdomain and in the pop-up that"ll be displayed, you may select the type 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 aforementioned alternative, you will need to specify the URL to the page, so when you use custom pages, you have to upload the files inside your Internet hosting account first. One other way is to use an .htaccess file placed inside the domain or subdomain folder with a line for each error type. The precise syntax can be located in our Knowledge Base, so that you can use this feature even if you do not have any previous experience.
Custom Error Pages in Semi-dedicated Servers
Adding your own pages for each of the four error types to any website hosted through a semi-dedicated server
account with us shall be very simple and won't take more than a couple of clicks. When you upload the files to your account, you could check out the Hosted Domains section of your Hepsia Control Panel and edit each of the domains and subdomains listed there using an intuitive interface with drop-down navigation. You could pick what page should appear for every error type. The choices are a standard Apache server page or a page from our system, and custom pages. If you choose the aforementioned option, you need to enter the link to every single page inside your account, then save the change. The link or the sort of page which will be displayed when a user encounters an error can be changed at any time. In case you’re more experienced, you may use an .htaccess file in order to set customized error pages as well, as an alternative to using our integrated generator tool, and if you choose this option, the file should be placed in the root directory of a specific domain or subdomain.