If a specific page on a site doesn't load for some reason or if a link is not functioning, the visitor shall see an error page with some generic message. The page shall have nothing in common with the rest of the Internet site, which can 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 up your own custom-made error pages which will have the exact same design and style as your Internet site and that can contain any text or images that you would like dependent upon the particular error. There are 4 common errors that can occur and they involve the following 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 are supposed to log in to see a web page, but you haven't done so yet; 403, if you don't have an authorization to see a specific page; and 404, when a link which you have clicked leads to a file which does not exist. In each of these situations, website visitors shall be able to see your customized content as opposed to a generic error page.
Custom Error Pages in Website Hosting
You'll be able to set up custom error pages for any of your domains or subdomains. The feature is supported by all website hosting plans which we offer, so as soon as you log in to the 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 will be displayed, you could select the sort of error page that should appear - a default one from our system, a conventional Apache server page or a custom one. For the aforementioned option, you will need to assign the URL to the page, so when you use personalized pages, you need to upload the files inside your web hosting account first. One other way is to use an .htaccess file located in the domain or subdomain folder with a line for each and every error type. The actual syntax can be located in our Knowledge Base, so that you can use this feature even if you don't have any previous experience.
Custom Error Pages in Semi-dedicated Hosting
Our Linux semi-dedicated hosting support custom made error pages, so you shall be able to employ this function for every single domain or subdomain hosted inside your account. All it takes to do this is to navigate to the Hosted Domains section of the Hepsia Control Panel, to click on the Edit button associated with the specific domain/subdomain and to type the link to the custom file. You can do this separately for each and every error type. You will be able to switch back to a generic error page anytime if needed and the change will take effect right away. An alternative way to achieve the exact same result is to place an .htaccess file in the domain or subdomain folder related to the web site which you'd like to modify and to type in a few lines of code within it. If you'd like to try this method, you may copy and paste the required code from our Knowledge Base article on custom error pages, which means that you shall not need any computer programming skills or previous experience.