If a specific page on an Internet site does not load for some reason or if a link is not functioning, the visitor will see an error page with a generic message. The page will have nothing in common with the rest of the Internet site, which may make the visitor leave the site. A likely solution in this case is a feature made available from some website hosting companies - the ability to set your own personalized error pages which will have the same design as your Internet site and that can contain any images or text which you want based on the particular error. There are 4 popular errors which may take place and they involve the following so-called HTTP status codes - 400, when your Internet browser sends a bad request to the hosting server and it can't be processed; 401, if you are supposed to log in to see some page, but you haven't done so yet; 403, if you do not have a permission to see a specific page; and 404, in case a link which you have clicked leads to a file that does not exist. In all of these scenarios, website visitors will be able to see your customized content as opposed to a generic error page.

Custom Error Pages in Hosting

When you get a hosting from us, you shall be able to set personalized error pages for your sites fast and easy, since this function is part of all our plans. Once you have created the files and uploaded them to your hosting account, you should check out the Hosted Domains section of your Hepsia CP and click on the Edit button for the particular domain or subdomain. Inside the pop-up that will show up, you shall see drop-down options menus for all four sorts of errors and for each of them you could pick an Apache default page, a generic page from our system or a custom page. Should you select the 3rd option, you should simply input the URL to the file you have uploaded and save the change. A different way to set personalized error pages is to set up an .htaccess file inside the domain or subdomain folder and to add a couple of lines of code in it. If you do not have prior experience or if you are simply uncertain how to do that, you may just copy and paste the code from our Knowledge Base article on that subject.

Custom Error Pages in Semi-dedicated Servers

Adding your personal pages for any of the 4 error types to any website hosted in a semi-dedicated server account with us shall be very basic and shall not take more than a few mouse clicks. Once you upload the files to your account, you could check out the Hosted Domains section of your Hepsia CP and edit the domains and subdomains listed there through an intuitive interface with drop-down navigation. You could pick what page should show up for every error type. The choices are a default Apache web server page or a page from our system, and tailor-made pages. In case you select the last option, you must enter the link to each page inside your account, then save the change. The link or the kind of page that will be shown if a user encounters an error can be modified at any time. If you're more experienced, you could use an .htaccess file so as to set custom made error pages too, instead of using our integrated generator instrument, and should you choose this option, the file has to be located inside the root directory of a particular domain or subdomain.