When a page on your website does not load, an error message shall be shown to the website visitor. As there are different errors, there are different pages that'll appear, but what's standard for all of them is that they are generic and most likely will have nothing that resembles the layout of your Internet site, which could be annoying for any site visitor. That is the reason why website hosting companies have introduced a function named Custom Error Pages. For a number of different errors, visitors shall see your custom made content, which could be informative or amusing, depending on your preference, and that will match the overall layout of your site, so the pages shall not appear as if they are not part of your Internet site at all. You may use this option for many errors - 400 (Bad request), 401 (Unauthorized), 403 (Forbidden) and 404 (File not Found).

Custom Error Pages in Hosting

You can set up custom error pages for any of your domains or subdomains. The feature is supported by all hosting package which we offer, so as soon as you log in to the Hepsia Control Panel and check out the Hosted Domains section, you may click on the Edit button for a domain/subdomain and in the pop-up that will show up, you could select the sort of error page that should show up - a default one from our system, a typical Apache server page or a custom one. For the last mentioned option, you have to assign the URL to the page, so if you use custom pages, you need to upload the files in your hosting account first. One other way is to use an .htaccess file positioned in the domain or subdomain folder with a line for every error type. The exact syntax can be seen in our Knowledge Base, so that you can use this function even if you do not have any previous experience.

Custom Error Pages in Semi-dedicated Servers

Including your pages for any of the four error types to any Internet site hosted in a semi-dedicated server account with us will be really basic and will not take more than a couple of mouse clicks. Once you upload the files in your account, you can navigate to the Hosted Domains section of your Hepsia CP and edit the domains and subdomains listed there via an intuitive interface with drop-down menus. You can select what page should display for each and every error type. Your options are a default Apache web server page or a page from our system, and custom made pages. In case you pick the last option, you must type the link to every single page inside your account, then save the change. The link or the sort of page that will be displayed if a user encounters an error can be modified anytime. In case you’re more experienced, you can use an .htaccess file to be able to set custom error pages too, instead of using our integrated generator software tool, and in case you choose this option, the file should be placed in the root directory of a particular domain or subdomain.