If a certain page on a site does not load for some reason or in case a link is not working, the website visitor shall see an error page with some generic message. The page will have nothing in common with the rest of the Internet site, which may make the visitor leave your site. A possible solution in cases like this is a feature made available from some hosting companies - the ability to set your own custom error pages which shall have identical style and design as your Internet site and which can contain any text or images you want based on the specific error. There are 4 common errors that can occur and they involve these so-called HTTP status codes - 400, when your browser sends a bad request to the hosting server and it can't be processed; 401, in case you are supposed to log in to see some webpage, but you haven't done so yet; 403, if you do not have a permission to see a specific page; and 404, when a link that you've clicked leads to a file that doesn't exist. In all of these situations, visitors will be able to see your custom made content as opposed to a generic error page.
Custom Error Pages in Cloud Hosting
You shall be able to set up personalized error pages for all of your domains or subdomains. The function is supported by all cloud hosting package which we offer, so when you log in to your Hepsia CP and navigate to the Hosted Domains section, you may click on the Edit button for a domain/subdomain and in the pop-up that will appear, you may select the kind of error page that should appear - a default one from our system, a conventional Apache web server page or a customized one. For the latter option, you need to assign the URL to the page, so when you use custom pages, you need to upload the files inside your Internet hosting account first. An alternative way is to use an .htaccess file positioned inside the domain or subdomain folder with a line for each error type. The correct syntax can be seen in our Knowledge Base, to help you use this function even if you don't have any previous experience.
Custom Error Pages in Semi-dedicated Hosting
Including your pages for any of the 4 error types to any Internet site hosted inside a semi-dedicated server account with us will be very easy and won't take more than several clicks. When you upload the files to 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 navigation. You could select what page should appear for every error type. The alternatives are a default Apache web server page or a page from our system, and custom made pages. In case you pick the aforementioned option, you need to enter the link to every page inside your account, then save the change. The link or the sort of page which will be displayed if a user encounters an error can be changed at any time. In case you are more experienced, you may use an .htaccess file to be able to set customized error pages too, as an alternative to using our integrated generator instrument, and if you choose this option, the file needs to be positioned in the root directory of a particular domain or subdomain.