Custom Error Pages
Take a plunge into website error pages. Learn when they appear and why you need to create your own custom error pages.
If you have checked out loads of websites, you have probably encountered some error message every now and then. An error may occur in case the hosting server can't process a request (Error 400), if you must log in so that you can see some content and you haven't done so (Error 401), if you are not permitted to access some webpage (Error 403) or when a link leads to a file which isn't on the web server (Error 404). Receiving this kind of messages can sometimes be frustrating because the pages don't have anything in common with the actual website. That’s why some hosting providers allow you to use your own error pages that'll match the style of your own site and that may have any content which you'd like - information why the error has occurred, a suggestion what you can do or even some funny comment. This type of function will help you keep the visitor on the website no matter the error or the reason for it.
-
Custom Error Pages in Cloud Website Hosting
When you order a
Linux cloud website hosting from us, you will be able to set personalized error pages for your websites fast and easy, since this feature is part of all of our packages. After you have created the files and uploaded them to your web hosting account, you can go to the Hosted Domains section of your Hepsia CP and click on the Edit button for the particular domain or subdomain. Inside the pop-up that will show up, you will see drop-down menus for all 4 sorts of errors and for each of them you could choose an Apache default page, a generic page from our system or a customized page. If you select the 3rd option, you should only type the URL to the file which you have uploaded and save the change. Another way to set custom made error pages is to set up an .htaccess file in the domain or subdomain folder and to include several lines of code in it. If you do not have prior experience or if you're simply unsure how to do this, you could simply copy and paste the code from our Knowledge Base article on that matter.
-
Custom Error Pages in Semi-dedicated Servers
Adding your personal pages for any of the four error types to any website hosted from a
semi-dedicated server account with us will be very uncomplicated and shall not take more than several mouse clicks. Once you upload the files inside your account, you could go to the Hosted Domains section of your Hepsia CP and edit any of the domains and subdomains listed there via an intuitive interface with drop-down menus. You could select what page should show up for every error type. Your options are a standard Apache server page or a page from our system, and custom made pages. In case you select the abovementioned option, you will need to type the link to each and every page in your account, then save the change. The link or the sort of page that will be displayed in case a user encounters an error can be changed at any time. If you're more experienced, you may use an .htaccess file to be able to set customized error pages too, rather than using our integrated generator instrument, and in case you select this option, the file should be located inside the root directory of a given domain or subdomain.