If a certain page on a site doesn't load for some reason or in case a link is not functioning, the visitor will see an error page with a generic message. The page will have nothing in common with the rest of the site, which could make the visitor leave the site. A potential solution in this case is a function offered by some website hosting companies - the option to set your own custom error pages that shall have the same style and design as your website and that can contain any images or text that you would like dependent upon the specific error. There are 4 common errors that could occur and they involve the following so-called HTTP status codes - 400, when your world-wide web browser sends a bad request to the hosting server and it cannot be processed; 401, if you're supposed to log in to see some web page, but you haven't done so yet; 403, if you don't have an authorization to see a particular page; and 404, in case a link that you've clicked leads to a file which doesn't exist. In any of these scenarios, visitors shall be able to see your custom content rather than a generic error page.
Custom Error Pages in Shared Hosting
If you acquire a Linux shared service from us, you shall be able to set custom error pages for your sites easily, since this feature is part of all our plans. Once you have created the files and uploaded them to your web hosting account, you should check out the Hosted Domains section of your Hepsia CP and click on the Edit button for the selected domain or subdomain. Inside the pop-up which will show up, you'll see drop-down menus for all 4 kinds of errors and for each of them you could pick an Apache default page, a generic page from our system or a custom page. In case you pick the third option, you should just input the URL to the file which you have uploaded and save the change. Another way to set personalized error pages is to create an .htaccess file inside the domain or subdomain folder and to add a few lines of program code in it. If you don't have previous experience or if you are just not sure how to do that, you could just copy and paste the code from our Knowledge Base article on that topic.
Custom Error Pages in Semi-dedicated Servers
Incorporating your personal pages for each of the four error types to any website hosted inside a semi-dedicated server account with us shall be very uncomplicated and shall not take more than several mouse clicks. Once you upload the files inside your account, you can check out the Hosted Domains section of your Hepsia CP and edit the domains and subdomains listed there via an intuitive interface with drop-down menus. You can select what page should appear for every single error type. Your choices are a standard Apache server page or a page from our system, and tailor-made pages. Should you pick the abovementioned option, you must type in the link to each page inside your account, then save the change. The link or the type of page that will be displayed in case a user encounters an error can be modified whenever you want. If you are more experienced, you may use an .htaccess file to set custom error pages too, instead of using our integrated generator instrument, and if you select this option, the file should be located in the root directory of a given domain or subdomain.