If a certain page on a site doesn't load for some reason or if a link is broken, the visitor will see an error page with some generic message. The page shall have nothing in common with the rest of the Internet site, that may make the visitor leave your website. A solution in this case is a function offered by some website hosting providers - the ability to set up your own custom error pages that will have identical design as your site and which may contain any text or images that you'd like depending on the particular error. There are four well-known errors that may take place and they involve these particular so-called HTTP status codes - 400, when your web browser sends a bad request to the server and it can't be processed; 401, if you're supposed to log in to see a webpage, but you haven't done this yet; 403, if you do not have a permission to see a particular page; and 404, if a link which you have clicked leads to a file that doesn't exist. In any of these scenarios, site visitors shall be able to see your custom made content instead of a generic error page.

Custom Error Pages in Web Hosting

If you purchase a Linux web hosting from us, you'll be able to set personalized error pages for your websites easily and quickly, since this function is part of all our solutions. Once you've created the files and uploaded them to your web hosting account, you can go to the Hosted Domains section of your Hepsia CP and click on the Edit button for the selected domain or subdomain. Inside the pop-up that will show up, you will see drop-down menus for all 4 sorts of errors and for each one of them you could select an Apache default page, a generic page from our system or a custom made page. Should you select the third option, you should simply type the URL to the file which you have uploaded and save the change. A different way to set custom error pages is to set up an .htaccess file inside the domain or subdomain folder and to include several lines of program code in it. If you do not have prior experience or if you're simply uncertain how to do that, you can simply copy/paste the code from our Knowledge Base article on that topic.

Custom Error Pages in Semi-dedicated Hosting

All Linux semi-dedicated hosting that we supply support custom made error pages and it shall not take more than a few mouse clicks from your Hepsia web hosting Control Panel to use this functionality. The option can be found in the Hosted Domains section of your Control Panel where you will need to type in the links to the custom-made files via simple drop-down menus and an intuitive interface. Needless to say, you should upload them inside your account before that. In case you don't need to use this feature at some point, you can deactivate it just as quickly and pick an Apache server page or a default page from our system to be shown when your visitors encounter an error. If you'd like to, you can also use an .htaccess file to enable the customized error pages. The file should include a specific line of code plus a link for each error type and you may find an example of the entire content for all four error types in our Help section.