If a particular page on a site does not load for some reason or in case a link is not working, the site visitor shall see an error page with a generic message. The page will have nothing in common with the rest of the website, which may make the visitor leave the site. A potential solution in this case is a function made available from some website hosting service providers - the ability to set your own personalized error pages which shall have exactly the same design as your website and which can contain any images or text which you want based on the specific error. There are 4 popular errors that may occur and they involve these particular so-called HTTP status codes - 400, when your web browser sends a bad request to the server and it cannot be processed; 401, if you are supposed to log in to see a page, but you haven't done so yet; 403, if you do not have a permission to view a particular page; and 404, in case a link that you've clicked leads to a file which does not exist. In all of these scenarios, website visitors shall be able to see your custom content instead of a generic error page.
Custom Error Pages in Cloud Website Hosting
If you obtain a Linux cloud website hosting from our company, you shall be able to set customized error pages for your websites easily and quickly, as this function is part of all our solutions. 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. In the pop-up that will appear, you will see drop-down options menus for all 4 sorts of errors and for each of them you could pick an Apache default page, a generic page from our system or a custom page. In case you select the third option, you should simply enter the URL to the file you have uploaded then save the change. One other way to set custom error pages is to create an .htaccess file in the domain or subdomain folder and to include a few lines of code in it. If you do not have preceding experience or if you're simply unsure how to do that, you may simply copy/paste the code from our Knowledge Base article on that topic.
Custom Error Pages in Semi-dedicated Hosting
Including your own pages for each of the four error types to any web site hosted from a semi-dedicated server account with us shall be very uncomplicated and shall not take more than a couple of clicks. When you upload the files inside your account, you could navigate 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 choose what page should appear for every error type. The options are a standard Apache server page or a page from our system, and customized pages. In case you pick the aforementioned option, you will need to type in the link to every page in your account, then save the change. The link or the type of page that will be shown in case a user encounters an error can be modified whenever you want. In case you are more experienced, you could use an .htaccess file so as to set in-house developed error pages as well, rather than using our integrated generator tool, and should you select this option, the file needs to be located inside the root directory of a given domain or subdomain.