If a particular page on a website doesn't load for some reason or if a link is not working, the website visitor will see an error page with a generic message. The page will have nothing in common with the rest of the site, that may make the visitor leave your Internet site. A solution in cases like this is a function offered by some web hosting service providers - the option to set your own custom error pages that shall have the same layout as your Internet site and which can contain any text or images you want depending on the particular error. There are four well-known errors which could 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, if you're supposed to log in to see some page, but you haven't done this yet; 403, if you don't have an authorization to view a specific page; and 404, when a link which you've clicked leads to a file which doesn't exist. In all of these scenarios, visitors shall be able to see your custom made content instead of a generic error page.

Custom Error Pages in Hosting

The customized error pages function is provided with each and every hosting plan that we offer and you'll be able to replace the generic pages with your own with no more than just a few clicks in your Hepsia website hosting Control Panel. You will have to produce the actual files and to upload them to your account, and then to set them for a specific domain or subdomain using the Hosted Domains section of the Hepsia Control Panel. You could do this for each and every site hosted in the account separately, so that every group of customized pages shall have the exact same layout as the website it is part of. If needed, you can always go back to a default page from our system or to a default Apache server page. An alternate way to set personalized error pages is to create an .htaccess file inside the domain/subdomain root folder and to include a few lines in it. If you have not done this before, you may simply copy the necessary program code from our Help article on the subject.

Custom Error Pages in Semi-dedicated Hosting

All of our semi-dedicated hosting packages support tailor-made error pages, so you will be able to employ this function for each and every domain or subdomain hosted in your account. All it takes to do that is to go to the Hosted Domains section of the Hepsia CP, to click on the Edit button linked to the given domain/subdomain and then to type the link to the custom-made file. You'll be able to do this individually for every error type. You will be able to switch back to a generic error page anytime if required and the change shall take effect at once. Another way to achieve the exact same result is to put an .htaccess file in the domain or subdomain folder associated with the site that you would like to edit and to type in several lines of program code within 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, therefore you won't need any programming skills or previous experience.