If a particular page on an Internet site does not load for some reason or if a link is broken, the website visitor will see an error page with some generic message. The page will have nothing in common with the rest of the site, which can make the visitor leave your site. A potential solution in such a case is a feature made available from some website hosting companies - the option to set up your own customized error pages which shall have exactly the same style and design as your website and that may contain any images or text you want dependent upon the specific error. There are 4 popular errors which may occur and they involve the following so-called HTTP status codes - 400, when your web browser sends a bad request to the hosting server and it cannot be processed; 401, in case you are supposed to log in to see some web page, but you haven't done this yet; 403, if you do not have an authorization to view a particular page; and 404, if a link which you've clicked leads to a file that doesn't exist. In all of these situations, website visitors shall be able to see your customized content as opposed to a generic error page.
Custom Error Pages in Cloud Website Hosting
You'll be able to set up custom made error pages for any of your domains or subdomains. The feature is supported by all cloud website hosting package that we provide, so after you log in to the Hepsia CP and check out the Hosted Domains section, you can click on the Edit button for a domain/subdomain and in the pop-up that"ll appear, you could pick the sort of error page that should appear - a default one from our system, a typical Apache server page or a personalized one. For the last mentioned option, you will need to specify the URL to the page, so if you use custom made pages, you need to upload the files in your web hosting account first. Another way is to use an .htaccess file positioned in the domain or subdomain folder with a line for each error type. The actual syntax can be located 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
Our Linux semi-dedicated hosting plans support personalized error pages, so you'll be able to employ this function for each and every domain or subdomain hosted inside your account. All it will take to do that is to go to the Hosted Domains section of the Hepsia CP, to click the Edit button linked to the specific domain/subdomain and then to type the link to the custom-made file. You'll be able to do this independently for each error type. You'll be able to switch back to a generic error page whenever you want if needed and the change will take effect straightaway. A different way to achieve the same result is to put an .htaccess file in the domain or subdomain folder of the website that you would like to change and to input a few lines of code in it. If you need to try this method, you could copy and paste the required code from our Knowledge Base article on custom error pages, so you won't need any computer programming skills or prior experience.