If a specific page on a website doesn't load for some reason or if a link is broken, the website visitor shall see an error page with some generic message. The page will have nothing in common with the rest of the website, that may make the visitor leave the website. A likely solution in cases like this is a function offered by some website hosting companies - the option to set your own customized error pages which will have the exact same layout as your site and which could contain any images or text you want based on the specific error. There are four popular errors which can take place and they involve these so-called HTTP status codes - 400, when your Internet browser sends a bad request to the server and it can't be processed; 401, if you're supposed to log in to see a webpage, but you have not done this yet; 403, if you do not have an authorization to view a particular page; and 404, in case a link that you have clicked leads to a file which doesn't exist. In any of these cases, site visitors will be able to see your custom content as opposed to a generic error page.
Custom Error Pages in Web Hosting
You will be able to set up personalized error pages for each of your domains or subdomains. The feature is supported by all web hosting plans which we provide, so when you log in to the Hepsia CP 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 be displayed, you may pick the type of error page that should show up - a default one from our system, a typical Apache web server page or a customized one. For the latter option, you must assign the URL to the page, so when you use personalized pages, you must upload the files inside your Internet hosting account first. Another way is to use an .htaccess file positioned inside the domain or subdomain folder with a line for each error type. The precise syntax can be found in our Knowledge Base, so you can use this feature even if you do not have any previous experience.
Custom Error Pages in Semi-dedicated Servers
Incorporating your own pages for each of the four error types to any web site hosted inside a semi-dedicated server account with us will be really uncomplicated and shall not take more than several mouse clicks. After you upload the files in your account, you can 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 navigation. You could select what page should appear for each and every error type. The choices are a standard Apache web server page or a page from our system, and custom made pages. In case you select the last option, you need to enter the link to each and every page in your account, then save the change. The link or the sort of page that shows up in case a user encounters an error can be modified at any time. In case you’re more experienced, you could use an .htaccess file so as to set custom error pages too, instead of using our integrated generator instrument, and in case you select this option, the file must be placed inside the root directory of a specific domain or subdomain.