Whenever a page on your site doesn't load, an error message will be displayed to the visitor. As there are different errors, there are different pages that will appear, but what's typical for all of them is that they're generic and probably shall have absolutely nothing that is similar to the layout of your Internet site, which could be irritating for any site visitor. That is the main reason why website hosting companies have introduced a feature called Custom Error Pages. For a range of different errors, website visitors will see your customized content, which could be informative or amusing, in accordance with your preference, and which will match the overall style and design of your Internet site, so the pages will not appear as if they're not part of your site at all. You can use this option for many errors - 400 (Bad request), 401 (Unauthorized), 403 (Forbidden) and 404 (File not Found).
Custom Error Pages in Hosting
If you acquire a hosting
from our company, you will be able to set custom error pages for your sites easily and quickly, since this feature is part of all our plans. As soon as you have created the files and uploaded them to your web hosting account, you can check out the Hosted Domains section of your Hepsia Control Panel and click on the Edit button for the particular domain or subdomain. In the pop-up that will appear, you shall see drop-down menus for all four kinds of errors and for each of them you may choose an Apache default page, a generic page from our system or a tailor-made page. Should you select the 3rd option, you should just type the URL to the file that you've uploaded then save the change. A different way to set custom error pages is to set up an .htaccess file inside the domain or subdomain folder and to include a couple of lines of code in it. In case you don't have previous experience or if you are simply unsure how to do that, you can just copy/paste the code from our Knowledge Base article on that topic.
Custom Error Pages in Semi-dedicated Servers
Adding your personal pages for any of the 4 error types to any website hosted from a semi-dedicated server
account with us shall be very uncomplicated and shall not take more than a few clicks. After you upload the files inside your account, you could go to the Hosted Domains section of your Hepsia CP and edit each of the domains and subdomains listed there via an intuitive interface with drop-down navigation. You could select what page should appear for every single error type. Your options are a standard Apache server page or a page from our system, and custom pages. Should you pick the last option, you have to type the link to every single page inside your account, then save the change. The link or the kind of page which shows up in case a user encounters an error can be changed whenever you want. If you are more experienced, you could use an .htaccess file so as to set tailor-made error pages too, as an alternative to using our integrated generator tool, and should you pick this option, the file should be placed in the root directory of a particular domain or subdomain.