Custom Error Pages
Get familiar with website error pages. Find out when they appear and why you need to set up your own custom error pages.
If a specific page on an Internet site does not load for some reason or if a link is not functioning, the visitor shall see an error page with a generic message. The page shall have nothing in common with the rest of the Internet site, which could make the visitor leave your website. A likely solution in this case is a function offered by some website hosting providers - the option to set up your own personalized error pages which will have identical design and style as your Internet site and which may contain any text or images which you want based on the particular error. There are four standard errors that can occur and they involve the following so-called HTTP status codes - 400, when your world-wide web browser sends a bad request to the hosting server and it cannot be processed; 401, if you're supposed to log in to see a page, but you have not done this yet; 403, if you don't have an authorization to view a particular page; and 404, if a link that you've clicked leads to a file that does not exist. In all of these scenarios, website visitors shall be able to see your personalized content instead of a generic error page.
-
Custom Error Pages in Website Hosting
When you acquire a
website hosting from us, you will be able to set custom error pages for your websites fast and easy, as this function is a part of all of our solutions. After you've created the files and uploaded them to your website hosting account, you can check out the Hosted Domains section of your Hepsia CP and click on the Edit button for the specific domain or subdomain. Inside the pop-up which will be displayed, you will see drop-down options menus for all 4 kinds of errors and for each one of them you can choose an Apache default page, a generic page from our system or a custom page. In case you pick the 3rd option, you should simply input the URL to the file you have uploaded and save the change. A different way to set personalized error pages is to create an .htaccess file inside the domain or subdomain folder and to include a couple of lines of program code in it. In case you don't have prior experience or if you're just unsure how to do that, you can simply copy/paste the code from our Knowledge Base article on that subject.
-
Custom Error Pages in Semi-dedicated Servers
Including your pages for any of the 4 error types to any Internet site hosted from a
semi-dedicated server account with us will be really simple and shall not take more than a few clicks. As soon as 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 via an intuitive interface with drop-down navigation. You could choose what page should display for each and every error type. The options are a standard Apache server page or a page from our system, and customized pages. In case you choose the abovementioned option, you have to enter the link to every single page in your account, then save the change. The link or the type of page that will be displayed in case a user encounters an error can be changed anytime. In case you’re more experienced, you may use an .htaccess file to set in-house made error pages too, as an alternative to using our integrated generator software instrument, and in case you choose this option, the file should be located inside the root directory of a given domain or subdomain.