If a particular page on a website doesn't load for some reason or in case a link is not working, the site 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 could make the visitor leave the site. A potential solution in this case is a function offered by some web hosting providers - the option to set up your own custom-made error pages that will have exactly the same style and design as your website and that may contain any images or text which you want based on the specific error. There are 4 popular errors that can occur and they involve these so-called HTTP status codes - 400, when your web browser sends a bad request to the web server and it cannot be processed; 401, in case you are supposed to log in to see a webpage, but you haven't done so yet; 403, if you don't have an authorization to see a specific page; and 404, in case a link that you have clicked leads to a file which doesn't exist. In any of these situations, visitors will be able to see your personalized content rather than a generic error page.
Custom Error Pages in Shared Website Hosting
When you get a shared website hosting plan from us, you shall be able to set custom error pages for your websites fast and easy, as this function is part of all our packages. Once you've 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 selected domain or subdomain. In the pop-up that will be displayed, you shall see drop-down options menus for all 4 types of errors and for each of them you can pick an Apache default page, a generic page from our system or a tailor-made page. In case you choose the third option, you should just enter the URL to the file you have uploaded then save the change. Another way to set custom made error pages is to create an .htaccess file inside the domain or subdomain folder and to add a couple of lines of program code in it. If you don't have previous experience or if you're simply not sure how to do this, you could simply copy and paste the code from our Knowledge Base article on that subject.