If a particular page on a website does not load for some reason or if a link is not working, the site visitor shall see an error page with some generic message. The page will have nothing in common with the rest of the website, which may make the visitor leave your site. A likely solution in this case is a function made available from some hosting providers - the ability to set up your own personalized error pages that shall have exactly the same layout as your Internet site and that may contain any images or text which you want based on the specific error. There are 4 popular errors that can occur and they involve the following so-called HTTP status codes - 400, when your world-wide web browser sends a bad request to the server and it can't be processed; 401, in case you are supposed to log in to see a page, but you haven't done so yet; 403, if you don't have a permission to view 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 situations, site visitors shall be able to see your customized content instead of a generic error page.

Custom Error Pages in Web Hosting

If you obtain a Linux web hosting package from our company, you'll be able to set custom made error pages for your Internet sites quickly and easily, as this feature is a part of all of our plans. The moment you have created the files and uploaded them to your website 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 show up, you will see drop-down options menus for all four types of errors and for each one of them you could pick an Apache default page, a generic page from our system or a custom page. If you select the third option, you should just input the URL to the file you have uploaded then save the change. Another way to set personalized error pages is to create an .htaccess file in the domain or subdomain folder and to add several lines of code in it. If you don't have previous experience or if you are simply unsure how to do that, you may simply copy/paste the code from our Knowledge Base article on that subject.

Custom Error Pages in Semi-dedicated Hosting

All our Linux semi-dedicated hosting support custom made error pages, so you'll be able to employ this function for each and every domain or subdomain hosted in your account. All it will take to do this is to navigate to the Hosted Domains section of the Hepsia CP, to click the Edit button associated with the specific domain/subdomain and to input the link to the custom file. You'll be able to do this separately for each error type. You will be able to switch back to a generic error page at any time if required and the change will take effect at once. An alternative way to get the exact same result is to put an .htaccess file inside the domain or subdomain folder associated with the site which you'd like to edit and to type in a few lines of code inside it. If you would like to try this method, you could copy and paste the necessary code from our Knowledge Base article on custom error pages, thus you shall not need any computer programming skills or previous experience.