If a specific page on a website does not load for some reason or if a link is not functioning, the website visitor shall see an error page with some generic message. The page shall have nothing in common with the rest of the website, which can make the visitor leave the website. A solution in such a case is a function offered by some web hosting service providers - the ability to set your own custom error pages that shall have the same design and style as your website and which can contain any images or text that you'd like dependent upon the specific error. There are four standard errors that may take place 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 cannot be processed; 401, if you're supposed to log in to see a webpage, but you have not done so yet; 403, if you do not have an authorization to see a specific page; and 404, when a link which you've clicked leads to a file which does not exist. In all of these scenarios, website visitors will be able to see your custom made content as opposed to a generic error page.

Custom Error Pages in Web Hosting

When you buy a web hosting from our company, you'll be able to set custom error pages for your sites easily, because this feature is part of all our plans. The moment you have created the files and uploaded them to your 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. In the pop-up that will appear, you'll see drop-down menus for all 4 sorts of errors and for each one of them you could select an Apache default page, a generic page from our system or a custom made page. Should you select the 3rd option, you should simply input the URL to the file which you have uploaded then save the change. One other way to set customized error pages is to set up an .htaccess file in the domain or subdomain folder and to add several lines of program code in it. In case you don't have previous experience or if you're just unsure how to do this, you may simply copy/paste the code from our Knowledge Base article on that matter.

Custom Error Pages in Semi-dedicated Servers

All of our semi-dedicated servers support personalized error pages, so you will be able to use this feature for every single domain or subdomain hosted in your account. All it takes to do this is to visit the Hosted Domains section of the Hepsia CP, to click on the Edit button associated with the specific domain/subdomain and then to input the link to the custom-made file. You are able to do this individually for each error type. You shall be able to switch back to a standard error page at any time if necessary and the change shall take effect straightaway. Another way to achieve the very same result is to set an .htaccess file in the domain or subdomain folder associated with the website which you want to edit and to input several lines of code within it. If you want to try this method, you could copy and paste the required code from our Knowledge Base article on custom error pages, so you shall not need any coding skills or previous experience.