If a particular page on a site does not 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 Internet site, that may make the visitor leave the site. A solution in such a case is a function offered by some hosting service providers - the option to set up your own personalized error pages which shall have the same layout as your site and which can contain any images or text which you want based on the particular error. There are 4 well-known errors that could occur and they involve these so-called HTTP status codes - 400, when your browser sends a bad request to the web server and it can't be processed; 401, if you're supposed to log in to see some web page, but you haven't done this yet; 403, if you do not have a permission to see a particular page; and 404, when a link that you've clicked leads to a file which doesn't exist. In any of these cases, visitors shall be able to see your customized content instead of a generic error page.
Custom Error Pages in Cloud Website Hosting
You can set up personalized error pages for all of your Internet sites with ease when you use any of our Linux cloud website hosting
. This can easily be done from 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 customized pages independently for any domain or subdomain. You have to upload the files to your account beforehand and enter the links to them during the process. This function can be de-activated whenever you want and the options you shall be able to to pick from are a standard page from our system or a default Apache web server page. Custom made error pages may be set with an .htaccess file as well. The file should be placed in the domain or subdomain folder and it must incorporate some system code and links to the pages. If you are not tech-savvy, you may copy the entire content needed for the file from our Help section.
Custom Error Pages in Semi-dedicated Servers
All of our Linux semi-dedicated hosting plans
support customized error pages, so you'll be able to employ this function for each and every 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 enter the link to the custom file. You could do this independently for every error type. You'll be able to switch back to a standard error page at any time if required and the change will take effect right away. An alternative way to achieve the exact same result is to put an .htaccess file inside the domain or subdomain folder related to the site which you want to modify and to enter a couple of lines of program code within it. If you'd like to try this method, you could copy and paste the required code from our Knowledge Base article on custom error pages, thus you will not need any programming skills or previous experience.