If a certain page on a site doesn't load for some reason or in case a link is not functioning, the site visitor shall see an error page with a generic message. The page shall have nothing in common with the rest of the Internet site, that may make the visitor leave the website. A possible solution in such a case is a feature made available from some hosting companies - the option to set your own personalized error pages that shall have the same design as your website and which can contain any text or images that you would like based on the specific error. There are four common errors which may occur and they involve these 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're supposed to log in to see some webpage, but you haven't done this yet; 403, if you don't have a permission to see a certain page; and 404, if a link which you have clicked leads to a file that doesn't exist. In each of these scenarios, website visitors will be able to see your personalized content instead of a generic error page.
Custom Error Pages in Shared Hosting
You can set up personalized error pages for any of your domains or subdomains. The feature is supported by all shared hosting plans that we provide, so after you log in to your Hepsia Control Panel and navigate to the Hosted Domains section, you may click on the Edit button for a domain/subdomain and in the pop-up that"ll appear, you can choose the kind of error page which should show up - a default one from our system, a typical Apache web server page or a personalized one. For the latter alternative, you must assign the URL to the page, so when you use custom pages, you should upload the files in your hosting account first. Another way is to use an .htaccess file located inside the domain or subdomain folder with a line for every error type. The exact syntax can be located in our Knowledge Base, so you can use this function even if you don't have any previous experience.
Custom Error Pages in Semi-dedicated Servers
Including your own pages for each of the 4 error types to any Internet site hosted from a semi-dedicated server account with us shall be very easy and will not take more than several clicks. Once you upload the files to your account, you could navigate to the Hosted Domains section of your Hepsia CP and edit each of the domains and subdomains listed there using an intuitive interface with drop-down menus. You can pick what page should show up for each error type. Your options are a default Apache server page or a page from our system, and customized pages. In case you select the aforementioned option, you need to input the link to each page in your account, then save the change. The link or the sort of page which will appear when a user encounters an error can be changed whenever you want. In case you are more experienced, you could use an .htaccess file in order to set tailor-made error pages as well, as opposed to using our integrated generator software instrument, and should you select this option, the file must be located in the root directory of a given domain or subdomain.