If a specific page on a website does not load for some reason or if a link is not working, the site visitor will see an error page with a generic message. The page shall have nothing in common with the rest of the Internet site, that may make the visitor leave your site. A likely solution in such a case is a feature made available from some website hosting providers - the option to set your own custom error pages that will have identical style and design as your Internet site and that could contain any text or images you want based on the particular error. There are four standard errors which can take place and they involve these particular so-called HTTP status codes - 400, when your browser sends a bad request to the server and it cannot be processed; 401, if 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, when a link which you have clicked leads to a file which does not exist. In all of these scenarios, visitors shall be able to see your personalized content instead of a generic error page.
Custom Error Pages in Cloud Hosting
When you get a Linux cloud package from our company, you'll be able to set custom made error pages for your Internet sites fast and easy, because 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. Inside the pop-up which will appear, you shall see drop-down menus for all 4 kinds of errors and for each 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 input the URL to the file you have uploaded and save the change. Another way to set custom error pages is to create an .htaccess file inside the domain or subdomain folder and to include several lines of code in it. In case you don't have prior experience or if you're just uncertain how to do this, you may simply copy and paste the code from our Knowledge Base article on that topic.