If a specific page on an Internet site does not load for some reason or if a link is not functioning, the site visitor shall 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 your website. A solution in cases like this is a feature offered by some website hosting companies - the ability to set your own personalized error pages that shall have identical design as your website and which may contain any text or images that you'd like depending on the specific error. There are four standard errors that may take place and they involve these particular so-called HTTP status codes - 400, when your world-wide web browser sends a bad request to the server and it cannot be processed; 401, in case you are supposed to log in to see some page, but you haven't done this yet; 403, if you don't have an authorization to view a particular page; and 404, in case a link which you have clicked leads to a file which does not exist. In any of these situations, site visitors shall be able to see your custom content as opposed to a generic error page.
Custom Error Pages in Website Hosting
You can set up custom error pages for each of your domains or subdomains. The function is supported by all website hosting solutions which we provide, so as soon as you log in to the Hepsia Control Panel and go to the Hosted Domains section, you can easily click on the Edit button for a domain/subdomain and in the pop-up which will show up, you could choose the sort of error page which should show up - a default one from our system, a conventional Apache server page or a personalized one. For the aforementioned option, you must specify the URL to the page, so when you use custom made pages, you have to upload the files in your web hosting account first. Another way is to use an .htaccess file located in the domain or subdomain folder with a line for every error type. The precise syntax can be located in our Knowledge Base, so that you can use this function even if you do not have any previous experience.
Custom Error Pages in Semi-dedicated Hosting
Incorporating your personal pages for each of the four error types to any website hosted in a semi-dedicated server account with us shall be very easy and will not take more than a few clicks. After you upload the files to your account, you could go to the Hosted Domains section of your Hepsia CP and edit any of the domains and subdomains listed there through an intuitive interface with drop-down menus. You can pick what page should show up for every single error type. The choices are a standard Apache server page or a page from our system, and custom pages. Should you pick the abovementioned option, you have to type in the link to every single page inside your account, then save the change. The link or the kind of page which will appear when a user encounters an error can be changed at any time. If you are more experienced, you could use an .htaccess file to set custom error pages too, as an alternative to using our integrated generator tool, and should you pick this option, the file needs to be placed in the root directory of a given domain or subdomain.