Custom Error Pages
Get familiar with website error pages. Discover when they show up and why you need to make your own custom error pages.
If a certain page on a website doesn't load for some reason or in case 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 Internet site, which can make the visitor leave your website. A likely solution in this case is a feature offered by some web hosting companies - the ability to set your own personalized error pages which will have identical layout as your Internet site and that may contain any text or images you want depending on the specific error. There are 4 common errors which could 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, in case you are supposed to log in to see a page, but you haven't done this yet; 403, if you don't have an authorization to view a specific page; and 404, in case a link that you've clicked leads to a file that 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
When you get a
Linux cloud web hosting package from our company, you shall be able to set custom error pages for your sites fast and easy, since this feature is part of all our solutions. The moment you have 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 selected domain or subdomain. In the pop-up that will appear, you will see drop-down options menus for all 4 kinds of errors and for each of them you can choose an Apache default page, a generic page from our system or a tailor-made page. If you pick the 3rd option, you should just type the URL to the file which you have uploaded then save the change. A different way to set customized 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 preceding experience or if you're simply unsure how to do that, you can simply copy/paste the code from our Knowledge Base article on that matter.
-
Custom Error Pages in Semi-dedicated Hosting
All of our
Linux semi-dedicated hosting packages support personalized error pages, so you shall be able to employ this feature for each domain or subdomain hosted inside your account. All it will take to do this is to go to the Hosted Domains section of the Hepsia Control Panel, to click on the Edit button related to the given domain/subdomain and to type the link to the custom file. You'll be able to do this individually for every error type. You will be able to switch back to a default error page anytime if required and the change will take effect right away. Another way to get the very same result is to put an .htaccess file inside the domain or subdomain folder related to the Internet site that you would like to edit and to enter a few lines of code inside it. If you need to try this method, you could copy and paste the necessary code from our Knowledge Base article on custom error pages, hence you will not need any coding skills or prior experience.