If a particular page on a site doesn't load for some reason or if a link is not functioning, the website visitor will see an error page with a generic message. The page shall have nothing in common with the rest of the website, that can make the visitor leave your Internet site. A solution in this case is a function offered by some web hosting service providers - the ability to set up your own custom error pages which will have the same layout as your site and that can contain any text or images that you would like based on the specific error. There are 4 common errors which may occur and they involve these particular so-called HTTP status codes - 400, when your browser sends a bad request to the hosting 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 don't have a permission to view a particular page; and 404, when a link that you've clicked leads to a file that doesn't exist. In all of these scenarios, visitors will be able to see your custom content rather than a generic error page.

Custom Error Pages in Cloud Hosting

You shall be able to set up custom error pages for any of your domains or subdomains. The function is supported by all cloud hosting plans which we provide, so after you log in to the Hepsia Control Panel and visit the Hosted Domains section, you may click on the Edit button for a domain/subdomain and in the pop-up that will show up, you may pick the type of error page that should show up - a default one from our system, a conventional Apache server page or a personalized one. For the latter option, you'll have to specify the URL to the page, so if you use personalized pages, you need to upload the files in your Internet hosting account first. One other way is to use an .htaccess file positioned in the domain or subdomain folder with a line for every error type. The exact syntax can be seen in our Knowledge Base, so that you can use this feature even if you do not have any previous experience.

Custom Error Pages in Semi-dedicated Servers

Our semi-dedicated servers support tailor-made error pages, thus you'll be able to use 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 Control Panel, to click on the Edit button related to the given domain/subdomain and to input the link to the custom-made file. You'll be able to do this separately for every error type. You shall be able to switch back to a default error page anytime if needed and the change will take effect instantly. Another way to achieve the exact same result is to put an .htaccess file in the domain or subdomain folder of the site that you want to change and to input several lines of code inside it. If you need to try this method, you may copy and paste the needed code from our Knowledge Base article on custom error pages, which means that you won't need any coding skills or prior experience.