Custom Error Pages
Understand what a Custom Error Page is, what function does it serve and how to set up one.
If a specific page on a site does not load for some reason or in case a link is not functioning, the site visitor will see an error page with some generic message. The page will have nothing in common with the rest of the site, that may make the visitor leave the website. A potential solution in cases like this 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 may contain any text or images you want dependent upon the specific error. There are four standard errors that could occur and they involve these 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 some web page, but you have not done so yet; 403, if you do not have a permission to view a specific page; and 404, in case a link which you've clicked leads to a file which does not exist. In each of these situations, website visitors shall be able to see your custom content rather than a generic error page.
-
Custom Error Pages in Cloud Web Hosting
If you obtain a
Linux cloud web hosting from our company, you will be able to set custom error pages for your sites quickly and easily, since this function is part of all our packages. The moment you have created the files and uploaded them to your hosting account, you should check out the Hosted Domains section of your Hepsia CP and click on the Edit button for the particular domain or subdomain. In the pop-up which will appear, you'll see drop-down menus for all 4 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 3rd option, you should only input the URL to the file that you've uploaded then 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 few lines of code in it. In case you don't have prior experience or if you are just uncertain how to do that, you may simply copy and paste the code from our Knowledge Base article on that topic.
-
Custom Error Pages in Semi-dedicated Servers
All our
Linux semi-dedicated plans support custom error pages, thus you'll be able to employ this function for every single domain or subdomain hosted inside your account. All it takes to do that is to navigate to the Hosted Domains section of the Hepsia CP, to click on the Edit button associated with the particular domain/subdomain and then to enter the link to the custom file. You could do this separately for each and every error type. You shall be able to switch back to a default error page at any time if necessary and the change will take effect right away. Another way to achieve the very same result is to put an .htaccess file inside the domain or subdomain folder associated with the website which you'd like to modify and to input a couple of lines of code in it. If you want to try this method, you can copy and paste the required code from our Knowledge Base article on custom error pages, which means that you'll not need any computer programming skills or prior experience.