Custom Error Pages
Learn what a Custom Error Page is, what role does it serve and the way to set one.
If you have checked out lots of websites, you've probably encountered some error message from time to time. An error could take place if the website hosting server can't process a request (Error 400), if you need to log in in order to see some content and you haven't done so (Error 401), if you aren't allowed to access a page (Error 403) or if a link leads to a file which is not on the web server (Error 404). Encountering this type of messages could sometimes be frustrating because the pages have absolutely nothing in common with the actual Internet site. That’s why some hosting providers permit you to set your own error pages which will match the layout of your own Internet site and which may have any content that you want - info why the error has taken place, a suggestion what you can do or even some funny comment. Such a function will help you keep the visitor on the site irrespective of the error and the reason for it.
-
Custom Error Pages in Cloud Hosting
When you purchase a
Linux cloud plan from our company, you will be able to set custom made error pages for your sites easily and quickly, as this function is part of all of our packages. Once you've created the files and uploaded them to your hosting account, you can check out the Hosted Domains section of your Hepsia CP and click on the Edit button for the selected domain or subdomain. Inside the pop-up which will be displayed, you shall see drop-down menus for all four types of errors and for each one of them you can choose an Apache default page, a generic page from our system or a tailor-made page. In case you pick the 3rd option, you should simply type the URL to the file that you have uploaded then save the change. One other way to set custom error pages is to set up an .htaccess file inside the domain or subdomain folder and to include a few lines of code in it. If you do not have prior experience or if you are just not sure how to do that, you can simply copy/paste the code from our Knowledge Base article on that matter.
-
Custom Error Pages in Semi-dedicated Servers
Including your own pages for any of the 4 error types to any Internet site hosted from a
semi-dedicated server account with us will be really easy and shall not take more than a couple of mouse clicks. Once you upload the files inside your account, you could go to 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 may choose what page should display for each and every error type. Your options are a default Apache server page or a page from our system, and custom made pages. If you choose the aforementioned option, you must enter the link to every single page inside your account, then save the change. The link or the type of page that will appear in case a user encounters an error can be modified at any time. If you are more experienced, you could use an .htaccess file so as to set personalized error pages too, as an alternative to using our integrated generator tool, and if you pick this option, the file needs to be placed in the root directory of a specific domain or subdomain.