If a particular page on a site doesn't load for some reason or in case a link is broken, the visitor shall see an error page with a generic message. The page shall have nothing in common with the rest of the website, which can make the visitor leave the site. A solution in such a case is a function made available from some web hosting providers - the ability to set up your own custom-made error pages which shall have identical style and design as your site and which may contain any images or text that you would like dependent upon the specific error. There are 4 standard errors that can take place and they involve these so-called HTTP status codes - 400, when your Internet browser sends a bad request to the web server and it can't be processed; 401, in case you are supposed to log in to see some web page, but you have not done so yet; 403, if you don't have an authorization to view a certain page; and 404, when a link which you've clicked leads to a file which does not exist. In each of these situations, site visitors will be able to see your custom content as opposed to a generic error page.
Custom Error Pages in Shared Web Hosting
The custom error pages feature is offered with each shared web hosting package we offer and you shall be able to replace all the generic pages with your own with no more than a few clicks in your Hepsia website hosting CP. You shall need to develop the actual files and to upload them to your account, and then to set them for a specific domain or subdomain from the Hosted Domains section of the Hepsia CP. You may do this for every web site hosted in the account separately, so that every set of personalized pages shall have the same style and design as the website it's part of. If necessary, you could always return back to a default page from our system or to the default Apache server page. Another way to set personalized error pages is to create an .htaccess file inside the domain/subdomain root folder and to add a few lines in it. If you haven't done this before, you could simply copy the required program code from our Help article about this.
Custom Error Pages in Semi-dedicated Hosting
Incorporating your own pages for any of the 4 error types to any site hosted from a semi-dedicated server account with us will be very uncomplicated and shall not take more than several clicks. As soon as you upload the files inside your account, you could go to the Hosted Domains section of your Hepsia CP and edit any of the domains and subdomains listed there via an intuitive interface with drop-down menus. You can choose what page should show up for each and every error type. The choices are a default Apache web server page or a page from our system, and custom made pages. In case you pick the abovementioned option, you must type the link to every single page inside your account, then save the change. The link or the kind of page that shows up if a user encounters an error can be changed whenever you want. In case you’re more experienced, you may use an .htaccess file in order to set custom error pages too, as an alternative to using our integrated generator software tool, and if you choose this option, the file has to be positioned inside the root directory of a particular domain or subdomain.