If a particular page on a website doesn't load for some reason or if a link is broken, the site visitor shall see an error page with some generic message. The page will have nothing in common with the rest of the site, that can make the visitor leave the site. A solution in such a case is a feature made available from some hosting companies - the ability to set up your own personalized error pages that shall have identical design as your site and which can contain any images or text that you would like based on the particular error. There are 4 common errors which could occur and they involve the following so-called HTTP status codes - 400, when your web browser sends a bad request to the server and it can't be processed; 401, if you are supposed to log in to see some web page, but you haven't done this yet; 403, if you do not have a permission to see a particular page; and 404, if a link that you've clicked leads to a file which doesn't exist. In each of these cases, website visitors will be able to see your personalized content as opposed to a generic error page.
Custom Error Pages in Website Hosting
The custom error pages function is offered with every website hosting plan we offer and you'll be able to substitute all generic pages with your own with no more than just a few mouse clicks in your Hepsia website hosting CP. You will need to produce the actual files and to upload them to your account, then to set them for a given domain or subdomain via the Hosted Domains section of the Hepsia Control Panel. You can do this for every website hosted in the account independently, so that each set of custom pages will have the same style and design as the website it's part of. When necessary, you can always return back to a default page from our system or to the default Apache server page. An alternate way to set custom error pages is to create an .htaccess file inside the domain/subdomain root folder and to add a few lines in it. If you have not done this before, you may simply copy the required code from our Help article about the subject.
Custom Error Pages in Semi-dedicated Hosting
Adding your personal pages for each of the 4 error types to any site hosted through a semi-dedicated server account with us will be very simple and won't take more than a few mouse clicks. As soon as you upload the files inside your account, you can go to the Hosted Domains section of your Hepsia Control Panel and edit any of the domains and subdomains listed there via an intuitive interface with drop-down navigation. You could choose what page should show up for every single error type. The options are a standard Apache web server page or a page from our system, and customized pages. If you pick the aforementioned option, you will need to enter the link to each and every page in your account, then save the change. The link or the type of page that will be shown if a user encounters an error can be changed at any time. In case you’re more experienced, you may use an .htaccess file in order to set tailor-made error pages too, instead of using our integrated generator tool, and should you pick this option, the file should be positioned in the root directory of a given domain or subdomain.