Whenever a page on your website does not load, an error message will be displayed to the visitor. Since there are different errors, there are different pages that will show up, but what's common for all of them is that they are generic and almost certainly shall have practically nothing in common with the layout of your Internet site, which could be irritating for any site visitor. This is the main reason why hosting providers have introduced a feature named Custom Error Pages. For a number of different errors, website visitors will see your unique content, which could be informative or witty, based on your personal preference, and that will match the overall layout of your Internet site, so the pages will not appear as if they are not part of your Internet site at all. You can use this option for a variety of errors - 400 (Bad request), 401 (Unauthorized), 403 (Forbidden) and 404 (File not Found).
Custom Error Pages in Website Hosting
When you obtain a website hosting plan from us, you'll be able to set customized error pages for your sites easily and quickly, because this function is a part of all of our packages. As soon as you've created the files and uploaded them to your website hosting account, you can check out the Hosted Domains section of your Hepsia Control Panel and click on the Edit button for the specific domain or subdomain. In the pop-up which will appear, you shall see drop-down options menus for all 4 types of errors and for each one of them you can choose an Apache default page, a generic page from our system or a customized page. Should you pick the third option, you should simply enter the URL to the file that you've uploaded then save the change. A different way to set custom error pages is to create an .htaccess file inside the domain or subdomain folder and to add a few lines of program code in it. In case you don't have prior experience or if you're just unsure how to do this, you may simply copy and paste the code from our Knowledge Base article on that subject.
Custom Error Pages in Semi-dedicated Servers
Our Linux semi-dedicated servers support personalized error pages, so you will be able to use this feature for every single domain or subdomain hosted inside your account. All it will take to do this is to visit the Hosted Domains section of the Hepsia CP, to click on the Edit button associated with the given domain/subdomain and then to type the link to the custom-made file. You are able to do this individually for every error type. You will be able to switch back to a default error page at any time if needed and the change will take effect immediately. A different way to get the same result is to set an .htaccess file inside the domain or subdomain folder associated with the website which you want to modify and to type in several lines of program code in it. If you need to try this method, you may copy and paste the required code from our Knowledge Base article on custom error pages, therefore you'll not need any coding skills or prior experience.