If a certain 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 a generic message. The page will have nothing in common with the rest of the website, which could make the visitor leave your site. A likely solution in this case is a function offered by some hosting companies - the option to set your own customized error pages which shall have identical layout as your site and that can contain any text or images that you would like based on the particular error. There are four popular errors that may take place and they involve the following so-called HTTP status codes - 400, when your world-wide 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 some web page, but you have not done so yet; 403, if you don't have a permission to view a particular page; and 404, if a link which you have clicked leads to a file that doesn't exist. In each of these situations, site visitors will be able to see your custom content instead of a generic error page.
Custom Error Pages in Web Hosting
When you acquire a Linux web hosting from us, you will be able to set customized error pages for your sites 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 should check out the Hosted Domains section of your Hepsia CP and click on the Edit button for the specific domain or subdomain. In the pop-up that will show up, you'll see drop-down menus for all 4 types of errors and for each of them you may pick an Apache default page, a generic page from our system or a custom made page. Should you select the third option, you should only input the URL to the file that you've uploaded and save the change. One other way to set custom error pages is to set up an .htaccess file inside the domain or subdomain folder and to add a few lines of code in it. If you do not have preceding experience or if you're simply uncertain how to do this, you may just copy and paste the code from our Knowledge Base article on that topic.