If a particular page on a site doesn't load for some reason or if a link is broken, the site visitor shall see an error page with a generic message. The page will have nothing in common with the rest of the Internet site, that could make the visitor leave your site. A potential solution in cases like this is a feature made available from some website hosting companies - the ability to set your own customized error pages that shall have identical layout as your site and that may contain any text or images you want depending on the particular error. There are 4 common errors that may take place 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, in case you are supposed to log in to see some 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've clicked leads to a file which doesn't exist. In all of these cases, visitors shall be able to see your custom made content instead of a generic error page.
Custom Error Pages in Hosting
When you acquire a hosting
from us, you shall be able to set personalized error pages for your websites easily, as this function is part of all our solutions. After you've created the files and uploaded them to your web hosting account, you can go to 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 appear, you'll see drop-down options menus for all 4 sorts of errors and for each one of them you can select an Apache default page, a generic page from our system or a custom page. In case you pick the third option, you should simply enter the URL to the file that you've uploaded and save the change. Another way to set custom made error pages is to create an .htaccess file inside the domain or subdomain folder and to add a couple of lines of code in it. In case you don't have preceding experience or if you are simply uncertain how to do this, you could just copy and paste the code from our Knowledge Base article on that topic.
Custom Error Pages in Semi-dedicated Servers
Including your pages for any of the four error types to any site hosted through a semi-dedicated server
account with us will be very uncomplicated and will not take more than a few clicks. After you upload the files inside your account, you can navigate to the Hosted Domains section of your Hepsia Control Panel and edit each of the domains and subdomains listed there using an intuitive interface with drop-down navigation. You can select what page should display for each and every error type. Your choices are a default Apache web server page or a page from our system, and custom pages. In case you select the abovementioned option, you must enter the link to each and every page inside your account, then save the change. The link or the kind of page that will be shown when a user encounters an error can be modified at any time. If you are more experienced, you may use an .htaccess file to be able to set custom made error pages too, as an alternative to using our integrated generator software tool, and if you pick this option, the file has to be located inside the root directory of a particular domain or subdomain.