If a particular page on a site does not load for some reason or if a link is broken, the visitor will see an error page with some generic message. The page will have nothing in common with the rest of the website, which may make the visitor leave the website. A potential solution in cases like this is a function made available from some hosting providers - the ability to set up your own personalized error pages that will have the exact same layout as your site and that could contain any text or images that you'd like dependent upon the specific error. There are four standard errors that can occur and they involve these so-called HTTP status codes - 400, when your web browser sends a bad request to the web server and it cannot be processed; 401, if you're supposed to log in to see a web page, but you have not done so yet; 403, if you do not have a permission to view a particular page; and 404, in case a link which you've clicked leads to a file that doesn't exist. In each of these situations, visitors shall be able to see your custom made content instead of a generic error page.

Custom Error Pages in Cloud Hosting

You can set up custom error pages for all of your domains or subdomains. The feature is supported by all cloud hosting plans that we provide, so when you log in to your Hepsia CP and go to the Hosted Domains section, you may click on the Edit button for a domain/subdomain and in the pop-up that"ll show up, you can choose the type of error page that should show up - a default one from our system, a conventional Apache server page or a personalized one. For the last mentioned alternative, you will need to specify the URL to the page, so when you use custom pages, you have to upload the files in your website hosting account first. An alternative way is to use an .htaccess file located inside the domain or subdomain folder with a line for every error type. The correct syntax can be located 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

Incorporating your personal pages for each of the 4 error types to any site hosted from a semi-dedicated server account with us shall be very easy and shall not take more than a couple of clicks. Once you upload the files to your account, you could check out 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 display for every error type. The alternatives are a default Apache web server page or a page from our system, and custom made pages. Should you select the aforementioned option, you must enter the link to every single page in your account, then save the change. The link or the kind of page that will be displayed if a user encounters an error can be changed anytime. In case you’re more experienced, you may use an .htaccess file in order to set custom made error pages too, rather than using our integrated generator software instrument, and in case you pick this option, the file needs to be positioned inside the root directory of a given domain or subdomain.