Custom Error Pages
Understand what a Custom Error Page is, what function does it have and ways to create one.
If a specific page on a website does not load for some reason or in case a link is broken, the website visitor shall see an error page with a generic message. The page shall have nothing in common with the rest of the site, that can make the visitor leave your Internet site. A solution in cases like this is a feature offered by some website hosting service providers - the option to set up your own customized error pages that shall have the same style and design as your Internet site and which may contain any images or text that you'd like dependent upon the particular error. There are four common errors that can take place and they involve the following so-called HTTP status codes - 400, when your 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 page, but you have not done so yet; 403, if you do not have a permission to view a specific page; and 404, when a link which you have clicked leads to a file that doesn't exist. In all of these situations, site visitors shall be able to see your personalized content rather than a generic error page.
Custom Error Pages in Cloud Hosting
When you get a Linux cloud hosting
from us, you will be able to set custom error pages for your websites quickly and easily, since this feature is a part of all our packages. The moment you've created the files and uploaded them to your hosting account, you can check out the Hosted Domains section of your Hepsia Control Panel and click on the Edit button for the specific domain or subdomain. Inside the pop-up which will show up, you will see drop-down options menus for all 4 kinds of errors and for each one of them you may select an Apache default page, a generic page from our system or a custom page. Should you choose the third option, you should only type the URL to the file that you've uploaded then save the change. One other way to set personalized error pages is to create an .htaccess file inside the domain or subdomain folder and to add several lines of code in it. If you do not have previous experience or if you're simply uncertain how to do that, you may just copy/paste the code from our Knowledge Base article on that subject.
Custom Error Pages in Semi-dedicated Hosting
When you host your websites in a semi-dedicated server
account from us, you'll be able to set customized error pages for each of them effortlessly using our in-house developed Hepsia hosting CP. With just a couple of mouse clicks inside the Hosted Domains section, you can change the default setting from a system page to a customized one for any of the four error types. All you must do is provide a link to each file you have uploaded before that and then save the change. If necessary, you shall be able to revert this customization anytime and in exactly the same way. If you wish, you could use an .htaccess file as well. It has to be created/uploaded in the domain or subdomain folder related to the internet site whose error pages you would want to alter and the content for this sort of file can be found in our Help article on this matter.