If a specific page on a site does not load for some reason or in case a link is broken, the site visitor will see an error page with a generic message. The page shall have nothing in common with the rest of the website, which can make the visitor leave the website. A potential solution in cases like this is a function offered by some web hosting companies - the option to set up your own custom error pages which shall have the exact same design as your Internet site and which could contain any images or text you want depending on the specific error. There are four popular errors that can occur and they involve the following so-called HTTP status codes - 400, when your web browser sends a bad request to the server and it can't be processed; 401, in case you are supposed to log in to see a web page, but you have not done this yet; 403, if you do not have a permission to see a specific page; and 404, when a link which you have clicked leads to a file which doesn't exist. In any of these scenarios, website visitors will be able to see your customized content as opposed to a generic error page.
Custom Error Pages in Shared Hosting
You can set up customized error pages for each of your Internet sites with ease when you use any of our Linux shared packages. This can be done from the Hosted Domains part of the Hepsia Control Panel, which comes with all accounts as soon as you go there, you could set your personalized pages independently for any domain or subdomain. You should upload the files to your account ahead of time and enter the links to them through the process. This function could be de-activated whenever you want and the options you will be able to choose from are a standard page from our system or a default Apache web server page. Customized error pages could be set with an .htaccess file as well. The file should be placed in the domain or subdomain folder and it should incorporate some system code and links to the pages. If you're not tech-savvy, you may copy the entire content you'll need for the file from our Help section.
Custom Error Pages in Semi-dedicated Hosting
Our Linux semi-dedicated hosting packages support customized error pages, so you will be able to employ this feature for each domain or subdomain hosted in your account. All it will take to do that is to go to the Hosted Domains section of the Hepsia Control Panel, to click the Edit button linked to the given domain/subdomain and then to type in the link to the custom file. You can do this individually for each and every error type. You'll be able to switch back to a generic error page whenever you want if required and the change shall take effect immediately. A different way to get the very same result is to put an .htaccess file inside the domain or subdomain folder of the Internet site which you would like to modify and to type in a couple of lines of code inside it. If you want to try this method, you may copy and paste the needed code from our Knowledge Base article on custom error pages, therefore you shall not need any programming skills or prior experience.