If a particular page on a site doesn't load for some reason or in case a link is broken, the website visitor will see an error page with some generic message. The page will have nothing in common with the rest of the Internet site, which can make the visitor leave your website. A solution in cases like this is a function offered by some website hosting service providers - the ability to set your own custom-made error pages that shall have the same layout as your site and which can contain any text or images you want based on the particular error. There are 4 common errors that can occur 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're supposed to log in to see a web page, but you haven't done this yet; 403, if you do not have an authorization to view a particular page; and 404, if a link which you've clicked leads to a file that does not exist. In each of these scenarios, visitors will be able to see your personalized content rather than a generic error page.
Custom Error Pages in Hosting
When you buy a Linux hosting package from us, you'll be able to set custom made error pages for your Internet sites easily, as this function is part of all our packages. The moment you have created the files and uploaded them to your hosting account, you can go to the Hosted Domains section of your Hepsia Control Panel and click on the Edit button for the specific domain or subdomain. Inside the pop-up that will be displayed, you shall see drop-down options menus for all four types of errors and for each one of them you can choose an Apache default page, a generic page from our system or a personalized page. If you select the third option, you should only enter 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 in the domain or subdomain folder and to add a few lines of code in it. In case you don't have prior experience or if you're just uncertain how to do that, you may just copy/paste the code from our Knowledge Base article on that matter.
Custom Error Pages in Semi-dedicated Hosting
Incorporating your own pages for each of the four error types to any Internet site hosted inside a semi-dedicated server account with us shall be very easy and will not take more than several clicks. After you upload the files to your account, you can check out the Hosted Domains section of your Hepsia CP and edit the domains and subdomains listed there through an intuitive interface with drop-down menus. You could choose what page should appear for each error type. The alternatives are a default Apache server page or a page from our system, and custom made pages. If you choose the last option, you must type in the link to each page in your account, then save the change. The link or the kind of page that appears if a user encounters an error can be changed anytime. If you're more experienced, you could use an .htaccess file to set custom error pages as well, as an alternative to using our integrated generator tool, and if you pick this option, the file has to be located inside the root directory of a specific domain or subdomain.