If a particular page on a site does not load for some reason or in case a link is broken, the visitor will see an error page with a generic message. The page shall have nothing in common with the rest of the Internet site, which can make the visitor leave your website. A solution in this case is a function offered by some hosting companies - the ability to set your own custom error pages that will have the exact same design as your site and that could contain any images or text which you want depending on the specific error. There are 4 common errors that may take place and they involve these 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 page, but you haven't done so yet; 403, if you do not have an authorization to see a particular page; and 404, when a link that you have clicked leads to a file that doesn't exist. In all of these scenarios, website visitors will be able to see your custom content as opposed to a generic error page.

Custom Error Pages in Cloud Website Hosting

When you buy a cloud website hosting from us, you'll be able to set custom made error pages for your sites easily and quickly, since this function is a part of all of our plans. The moment you've created the files and uploaded them to your hosting account, you can check out the Hosted Domains section of your Hepsia CP and click on the Edit button for the specific domain or subdomain. In the pop-up which will appear, you shall see drop-down options menus for all four kinds of errors and for each of them you can pick an Apache default page, a generic page from our system or a customized page. Should you pick the 3rd option, you should simply input the URL to the file which you have uploaded then save the change. A different way to set customized error pages is to create an .htaccess file inside the domain or subdomain folder and to include a couple of lines of code in it. If you don't have prior experience or if you are just uncertain how to do that, you could just copy and paste the code from our Knowledge Base article on that topic.