If a certain page on a website does not load for some reason or in case a link is broken, the website visitor shall see an error page with a generic message. The page shall have nothing in common with the rest of the site, that may make the visitor leave the website. A solution in such a case is a function made available from some website hosting companies - the ability to set up your own custom error pages that shall have identical design as your site and that could contain any images or text that you'd like based on the particular error. There are four common errors that may occur and they involve these particular so-called HTTP status codes - 400, when your world-wide web browser sends a bad request to the web server and it can't be processed; 401, if you are supposed to log in to see a webpage, but you have not done this yet; 403, if you do not have an authorization to see a certain page; and 404, when a link that you have clicked leads to a file which does not exist. In all of these cases, visitors will be able to see your custom made content as opposed to a generic error page.

Custom Error Pages in Website Hosting

You'll be able to set up custom error pages for all of your sites easily if you use any of our website hosting. This can easily be done using the Hosted Domains section of the Hepsia CP, which comes with all accounts and when you go there, you'll be able to set your personalized pages independently for any domain or subdomain. You need to upload the files to your account before you start and enter the links to them during the process. This feature can be de-activated at any time and the options you will be able to select from are a conventional page from our system or a default Apache server page. Tailor-made error pages can be set with an .htaccess file too. The file should be put into the domain or subdomain folder and it should incorporate some system code and links to the pages. If you're not tech-savvy, you can copy the entire content you'll need for the file from our Help section.

Custom Error Pages in Semi-dedicated Hosting

Our Linux semi-dedicated hosting support customized error pages, thus you'll be able to employ this feature for each 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 Control Panel, to click the Edit button related to the given domain/subdomain and then to input the link to the custom file. You are able to do this independently for each and every error type. You'll be able to switch back to a standard error page whenever you want if needed and the change shall take effect instantly. A different way to achieve the very same result is to set an .htaccess file inside the domain or subdomain folder of the web site that you'd like to modify and to enter a couple of lines of code within it. If you need to try this method, you could copy and paste the needed code from our Knowledge Base article on custom error pages, so you'll not need any programming skills or previous experience.