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 will have nothing in common with the rest of the Internet site, which may make the visitor leave the website. A likely solution in cases like this is a function made available from some web hosting providers - the ability to set your own custom error pages which shall have the exact same layout as your site and which can contain any images or text which you want depending on the specific error. There are four standard errors which can occur and they involve these so-called HTTP status codes - 400, when your 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 some page, but you haven't done so yet; 403, if you do not have a permission to see a particular page; and 404, if a link that you have clicked leads to a file which doesn't exist. In all of these situations, site visitors shall be able to see your custom content instead of a generic error page.
Custom Error Pages in Cloud Web Hosting
The custom made error pages function is provided with each and every cloud web hosting package deal we offer and you'll be able to swap the generic pages with your own with no more than just a few clicks inside your Hepsia website hosting Control Panel. You'll need to create the actual files and to upload them to your account, and then to set them for a given domain or subdomain via the Hosted Domains section of the Hepsia CP. You could do this for each and every website hosted inside the account separately, so that each group of custom made pages will have the same design and style as the website it is part of. If required, you could always revert back to a default page from our system or to a default Apache server page. Another way to set custom made 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 never done this before, you can simply copy the necessary code from our Help article on this subject.
Custom Error Pages in Semi-dedicated Hosting
All of our Linux semi-dedicated packages support custom made 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 that is to visit the Hosted Domains section of the Hepsia Control Panel, to click the Edit button related to the given domain/subdomain and then to type the link to the custom-made file. You are able to do this individually for every error type. You shall be able to switch back to a generic error page at any time if required and the change shall take effect immediately. A different way to achieve the same exact result is to place an .htaccess file in the domain or subdomain folder associated with the website which you'd like to edit and to input a couple of lines of program code inside it. If you'd like to try this method, you may copy and paste the needed code from our Knowledge Base article on custom error pages, so you will not need any computer programming skills or prior experience.