Custom Error Pages
Take a plunge into website error pages. Find out when they appear and why you need to create your own custom error pages.
If a particular page on a website doesn't load for some reason or in case a link is not functioning, the site visitor shall see an error page with some generic message. The page shall have nothing in common with the rest of the Internet site, that can make the visitor leave the site. A possible solution in this case is a function offered by some website hosting providers - the option to set your own custom-made error pages which will have exactly the same style and design as your site and that may contain any text or images that you'd like dependent upon the specific error. There are four well-known errors which can occur and they involve the following so-called HTTP status codes - 400, when your browser sends a bad request to the hosting server and it cannot be processed; 401, in case you are supposed to log in to see a webpage, but you have not done this yet; 403, if you do not have a permission to view a certain page; and 404, in case a link which you've clicked leads to a file that doesn't exist. In all of these scenarios, visitors shall be able to see your custom content instead of a generic error page.
-
Custom Error Pages in Cloud Hosting
When you buy a
cloud hosting from our company, you will be able to set custom error pages for your Internet sites easily, since this function is a part of all our packages. The moment you've created the files and uploaded them to your website hosting account, you should check out the Hosted Domains section of your Hepsia CP and click on the Edit button for the selected domain or subdomain. In the pop-up that will show up, you shall see drop-down menus for all four sorts of errors and for each of them you may choose an Apache default page, a generic page from our system or a tailor-made page. In case you choose the third option, you should simply type the URL to the file that you've uploaded then save the change. A different way to set custom made error pages is to set up an .htaccess file in the domain or subdomain folder and to add a few lines of code in it. In case you don't have previous experience or if you're just not sure how to do that, you could simply copy/paste the code from our Knowledge Base article on that topic.
-
Custom Error Pages in Semi-dedicated Servers
Incorporating your personal pages for any of the 4 error types to any website hosted from a
semi-dedicated server account with us will be really simple and won't take more than a few clicks. After you upload the files in your account, you can navigate to the Hosted Domains section of your Hepsia Control Panel and edit any of the domains and subdomains listed there using an intuitive interface with drop-down menus. You can pick what page should appear for every error type. Your choices are a default Apache web server page or a page from our system, and personalized pages. If you pick the abovementioned option, you need to type in the link to every single page in your account, then save the change. The link or the kind of page that shows up when a user encounters an error can be modified at any time. If you are more experienced, you may use an .htaccess file to set in-house made error pages as well, as an alternative to using our integrated generator tool, and in case you choose this option, the file should be placed in the root directory of a specific domain or subdomain.