If a specific page on a site does not load for some reason or in case a link is broken, the visitor shall see an error page with a generic message. The page will have nothing in common with the rest of the Internet site, which can make the visitor leave the website. A solution in cases like this is a feature made available from some website hosting providers - the ability to set up your own custom error pages that will have exactly the same style and design as your site and that could contain any text or images that you would like dependent upon the particular error. There are 4 common errors that could take place and they involve the following so-called HTTP status codes - 400, when your web browser sends a bad request to the web server and it can't be processed; 401, if you are supposed to log in to see a webpage, but you have not done this yet; 403, if you don't have an authorization to view a certain page; and 404, if a link which you've clicked leads to a file that does not exist. In all of these situations, website visitors shall be able to see your custom content as opposed to a generic error page.
Custom Error Pages in Shared Web Hosting
You can set up custom made error pages for all of your domains or subdomains. The function is supported by all shared web hosting package that we offer, so as soon as you log in to the Hepsia CP and go to the Hosted Domains section, you may click on the Edit button for a domain/subdomain and in the pop-up that will appear, you may select the sort of error page that should appear - a default one from our system, a standard Apache server page or a personalized one. For the aforementioned alternative, you have to assign the URL to the page, so if you use customized pages, you need to upload the files in your hosting account first. Another way is to use an .htaccess file placed inside the domain or subdomain folder with a line for each and every error type. The correct syntax can be located in our Knowledge Base, so that you can use this function even if you don't have any previous experience.
Custom Error Pages in Semi-dedicated Servers
Incorporating your pages for each of the four error types to any website hosted inside a semi-dedicated server account with us will be very easy and shall not take more than a couple of clicks. After you upload the files to your account, you can go to the Hosted Domains section of your Hepsia Control Panel and edit any of the domains and subdomains listed there through an intuitive interface with drop-down menus. You may pick what page should show up for every single error type. The choices are a standard Apache server page or a page from our system, and customized pages. In case you choose the abovementioned option, you need to enter the link to every single page inside your account, then save the change. The link or the kind of page that appears when a user encounters an error can be modified at any time. In case you’re more experienced, you may use an .htaccess file in order to set in-house developed error pages too, as an alternative to using our integrated generator software instrument, and should you pick this option, the file has to be placed inside the root directory of a particular domain or subdomain.