If a specific page on an Internet site doesn't load for some reason or if a link is broken, the website visitor shall see an error page with a generic message. The page will have nothing in common with the rest of the site, that could make the visitor leave the site. A potential solution in such a case is a feature made available from some web hosting companies - the option to set up your own personalized error pages which will have identical style and design as your Internet site and which can contain any text or images that you'd like dependent upon the particular error. There are 4 common errors that could occur and they involve these so-called HTTP status codes - 400, when your world-wide web browser sends a bad request to the server and it can't be processed; 401, if you are supposed to log in to see some page, but you have not done so yet; 403, if you do not have an authorization to view a particular page; and 404, when a link which you have clicked leads to a file that doesn't exist. In each of these situations, visitors shall be able to see your custom content instead of a generic error page.
Custom Error Pages in Hosting
You can set up custom error pages for each of your Internet sites with ease if you use any of our hosting plans. This can be done from the Hosted Domains section of the Hepsia Control Panel, provided with all accounts and when you go there, you can set your custom pages independently for any domain or subdomain. You have to upload the files to your account in advance and input the links to them through the process. This function may be de-activated anytime and the options you will be able to choose from are a standard page from our system or a default Apache web server page. Personalized error pages could be set with an .htaccess file too. The file should be put in the domain or subdomain folder and it must include some system code and links to the pages. If you're not tech-savvy, you could copy the whole content you'll need for the file from our Help section.
Custom Error Pages in Semi-dedicated Servers
All of our semi-dedicated hosting plans support customized error pages, so you will be able to use this feature for each and every domain or subdomain hosted inside your account. All it will take to do that is to navigate to the Hosted Domains section of the Hepsia Control Panel, to click on the Edit button linked to the particular domain/subdomain and then to type in the link to the custom-made file. You'll be able to do this independently for every error type. You shall be able to switch back to a standard error page whenever you want if required and the change shall take effect right away. A different way to get the same result is to set an .htaccess file in the domain or subdomain folder of the website that you want to edit and to input a couple of lines of code within it. If you'd like to try this method, you can 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.