Custom Error Pages
Learn more about website error pages, exactly when they appear and why you need to utilize customized error pages.
If a certain page on an Internet site doesn't load for some reason or if a link is not functioning, the website visitor will see an error page with a generic message. The page shall have nothing in common with the rest of the site, which can make the visitor leave the website. A likely solution in such a case is a function offered by some web hosting service providers - the option to set your own personalized error pages that will have exactly the same design and style as your website and that may contain any text or images you want dependent upon the particular error. There are 4 popular 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 hosting server and it can't be processed; 401, if you are supposed to log in to see a web page, but you have not done this yet; 403, if you do not have a permission to view a specific page; and 404, if a link which you have clicked leads to a file which doesn't exist. In each of these situations, website visitors shall be able to see your custom content rather than a generic error page.
Custom Error Pages in Shared Hosting
When you buy a Linux shared hosting from our company, you'll be able to set custom made error pages for your sites easily, because this function is a part of all of our packages. After you have created the files and uploaded them to your website hosting account, you can check out the Hosted Domains section of your Hepsia CP and click on the Edit button for the particular domain or subdomain. Inside the pop-up that will be displayed, you will see drop-down options menus for all four kinds of errors and for each of them you may pick an Apache default page, a generic page from our system or a personalized page. In case you pick the 3rd option, you should only input the URL to the file which you have uploaded and save the change. A different way to set personalized error pages is to set up an .htaccess file in the domain or subdomain folder and to include several lines of program code in it. If you don't have previous experience or if you're just unsure how to do that, you may simply copy and paste the code from our Knowledge Base article on that topic.