If a page on your site does not load, an error message shall be displayed to the visitor. As there are different errors, there are different pages that'll appear, but what is typical for all of them is that they're generic and probably will have practically nothing in common with the design of your website, which can be annoying for any site visitor. This is the primary reason why hosting service providers have introduced a function referred to as Custom Error Pages. For a number of different errors, website visitors shall see your customized content, which may be informative or witty, based on your preference, and that will match the overall style and design of your website, so the pages shall not seem like they're not part of your Internet site at all. You could use this option for many errors - 400 (Bad request), 401 (Unauthorized), 403 (Forbidden) and 404 (File not Found).
Custom Error Pages in Shared Web Hosting
When you acquire a Linux shared web hosting from our company, you'll be able to set custom made error pages for your sites easily and quickly, since this function is a part of all of our solutions. Once you've created the files and uploaded them to your hosting account, you can go to the Hosted Domains section of your Hepsia CP and click on the Edit button for the selected domain or subdomain. In the pop-up which will be displayed, you'll see drop-down menus for all four types of errors and for each one of them you could pick an Apache default page, a generic page from our system or a custom page. Should you select the third option, you should simply enter the URL to the file that you have uploaded and save the change. Another way to set customized error pages is to set up an .htaccess file inside the domain or subdomain folder and to include several lines of program code in it. If you do not have prior experience or if you're just unsure how to do this, you could simply copy and paste the code from our Knowledge Base article on that matter.
Custom Error Pages in Semi-dedicated Servers
Our Linux semi-dedicated servers support personalized error pages, so you'll be able to use this function for every single domain or subdomain hosted inside your account. All it takes to do this is to navigate to the Hosted Domains section of the Hepsia CP, to click on the Edit button linked to the particular domain/subdomain and to input 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 generic error page whenever you want if needed and the change will take effect at once. An alternative way to get the very same result is to place an .htaccess file in the domain or subdomain folder related to the site that you would like to modify and to input a few lines of code in 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, therefore you'll not need any programming skills or previous experience.