If a specific page on a website does not load for some reason or if a link is not working, the website visitor shall see an error page with a generic message. The page shall have nothing in common with the rest of the site, which could make the visitor leave the website. A potential solution in this case is a feature offered by some hosting providers - the option to set your own custom-made error pages which will have identical design and style as your site and that could contain any text or images that you'd like depending on the specific error. There are four popular errors that can occur and they involve these particular so-called HTTP status codes - 400, when your world-wide web browser sends a bad request to the web server and it cannot be processed; 401, if you are supposed to log in to see a web page, but you haven't done so yet; 403, if you do not have a permission to view a certain page; and 404, if a link that you've clicked leads to a file which doesn't exist. In each of these situations, website visitors will be able to see your customized content as opposed to a generic error page.

Custom Error Pages in Shared Hosting

If you obtain a Linux shared hosting from our company, you'll be able to set customized error pages for your sites easily, as this feature is a part of all of our packages. Once you have created the files and uploaded them to your website hosting account, you can go to the Hosted Domains section of your Hepsia CP 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 types of errors and for each one of them you could select an Apache default page, a generic page from our system or a customized page. If you choose the third option, you should just enter the URL to the file that you have uploaded then save the change. Another way to set personalized error pages is to set up an .htaccess file in the domain or subdomain folder and to add several lines of program code in it. If you don't have preceding experience or if you're simply unsure how to do this, you could simply copy/paste the code from our Knowledge Base article on that subject.

Custom Error Pages in Semi-dedicated Hosting

Adding your pages for each of the 4 error types to any website hosted inside a semi-dedicated server account with us will be really simple and shall not take more than several mouse clicks. After you upload the files inside your account, you could navigate to the Hosted Domains section of your Hepsia CP and edit any of the domains and subdomains listed there through an intuitive interface with drop-down menus. You can pick what page should show up for every error type. The options are a standard Apache web server page or a page from our system, and tailor-made pages. Should you choose the last option, you will need to enter the link to every page in your account, then save the change. The link or the type 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 in order to set custom error pages as well, instead of using our integrated generator software instrument, and if you select this option, the file must be placed inside the root directory of a given domain or subdomain.