If a certain page on a site doesn't load for some reason or if a link is not functioning, the site visitor will see an error page with a generic message. The page shall have nothing in common with the rest of the site, which may make the visitor leave your site. A solution in such a case is a feature made available from some hosting providers - the option to set up your own custom-made error pages that will have the same layout as your site and that may contain any text or images you want depending on the specific error. There are 4 common errors which can take place and they involve the following so-called HTTP status codes - 400, when your web 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 a webpage, but you have not done so yet; 403, if you do not have a permission to view a certain page; and 404, in case a link which you've clicked leads to a file that does not exist. In any of these cases, site visitors will be able to see your personalized content instead of a generic error page.
Custom Error Pages in Web Hosting
You'll be able to set up customized error pages for all of your sites without difficulty when you use any of our Linux web hosting
. This can easily be done through the Hosted Domains part of the Hepsia Control Panel, which comes with all accounts and once you go there, you can set your custom pages independently for any domain or subdomain. You must upload the files to your account ahead of time and input the links to them through the process. This function may be de-activated anytime and the options you shall be able to to pick from are a conventional page from our system or a default Apache web server page. Custom made error pages can be set with an .htaccess file as well. 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 aren't tech-savvy, you may copy the whole content needed for the file from our Help section.
Custom Error Pages in Semi-dedicated Servers
All of our Linux semi-dedicated service
support customized error pages, thus you'll be able to employ this feature for each and every domain or subdomain hosted in your account. All it will take to do that is to navigate to the Hosted Domains section of the Hepsia CP, to click the Edit button associated with the particular domain/subdomain and then to type in the link to the custom file. You are able to do this individually for every error type. You will be able to switch back to a default error page whenever you want if required and the change will take effect at once. Another way to get the same result is to set an .htaccess file inside the domain or subdomain folder related to the web site which you'd like to change and to input a couple of lines of program code within it. If you want to try this method, you can copy and paste the required code from our Knowledge Base article on custom error pages, therefore you will not need any coding skills or previous experience.