Custom Error Pages
Understand what a Custom Error Page is, what role does it have and the way to set up one.
If a certain page on a site does not load for some reason or if a link is not functioning, the website visitor will see an error page with a generic message. The page will have nothing in common with the rest of the website, which may make the visitor leave your website. A likely solution in such a case is a feature offered by some hosting companies - the ability to set your own custom-made error pages which shall have exactly the same layout as your site and which can contain any text or images that you would like depending on the particular error. There are 4 well-known errors which could take place and they involve these 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 a page, but you have not done this yet; 403, if you do not have a permission to view a certain page; and 404, in case a link that you've clicked leads to a file which does not exist. In all of these cases, website visitors shall be able to see your custom content as opposed to a generic error page.
Custom Error Pages in Web Hosting
When you acquire a Linux web hosting package
from us, you'll be able to set custom made error pages for your websites easily and quickly, because this function is a part of all our packages. After you've created the files and uploaded them to your website hosting account, you can go to the Hosted Domains section of your Hepsia Control Panel and click on the Edit button for the particular domain or subdomain. In the pop-up which will show up, you shall see drop-down options menus for all four types of errors and for each one of them you can choose an Apache default page, a generic page from our system or a custom page. If you select the third option, you should only input the URL to the file that you have uploaded and save the change. One other way to set customized error pages is to set up an .htaccess file inside the domain or subdomain folder and to include several lines of code in it. If you don't have prior experience or if you're simply unsure how to do this, you could just copy and paste the code from our Knowledge Base article on that topic.