If a certain page on an Internet site does not load for some reason or if a link is not functioning, the site visitor will see an error page with some generic message. The page will have nothing in common with the rest of the site, which could make the visitor leave your Internet site. A potential solution in such a case is a feature offered by some website hosting providers - the ability to set your own personalized error pages that will have the exact same design as your Internet site and that can contain any text or images that you would like based on the particular error. There are 4 standard errors that may occur and they involve these so-called HTTP status codes - 400, when your world-wide web browser sends a bad request to the web 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 don't have an authorization to view a specific page; and 404, in case a link which you have clicked leads to a file that does not exist. In each of these scenarios, visitors shall be able to see your custom content as opposed to a generic error page.
Custom Error Pages in Hosting
When you purchase a Linux hosting plan from our company, you will be able to set custom error pages for your sites easily, as this function is a part of all our plans. 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 Control Panel and click on the Edit button for the specific domain or subdomain. Inside the pop-up which will be displayed, you shall see drop-down menus for all 4 sorts of errors and for each of them you can pick an Apache default page, a generic page from our system or a custom made page. Should you select the 3rd option, you should simply input the URL to the file that you've uploaded then save the change. One other way to set custom made error pages is to set up an .htaccess file inside the domain or subdomain folder and to add several lines of code in it. If you do not have preceding experience or if you are simply not sure how to do this, you may just copy/paste the code from our Knowledge Base article on that topic.
Custom Error Pages in Semi-dedicated Servers
Incorporating your pages for each of the 4 error types to any website hosted from a semi-dedicated server account with us will be very simple and won't take more than several mouse clicks. As soon as you upload the files inside your account, you could check out the Hosted Domains section of your Hepsia CP and edit the domains and subdomains listed there through an intuitive interface with drop-down menus. You could pick what page should show up for every single error type. Your options are a default Apache web server page or a page from our system, and custom made pages. If you pick the last option, you must type the link to each and every page inside your account, then save the change. The link or the kind of page which shows up if a user encounters an error can be changed anytime. In case you’re more experienced, you can use an .htaccess file to set customized error pages as well, instead of using our integrated generator tool, and should you select this option, the file has to be positioned inside the root directory of a given domain or subdomain.