If a particular page on a site does not load for some reason or in case a link is broken, the visitor shall see an error page with a generic message. The page shall have nothing in common with the rest of the Internet site, that can make the visitor leave your site. A likely solution in cases like this is a function offered by some hosting companies - the option to set up your own custom-made error pages that will have the same design and style as your Internet site and that may contain any text or images that you'd like based on the particular error. There are four popular errors that could take place and they involve the following so-called HTTP status codes - 400, when your browser sends a bad request to the web server and it cannot be processed; 401, if you are supposed to log in to see some webpage, but you haven't done so yet; 403, if you do not have a permission to view a certain page; and 404, if a link which you have clicked leads to a file that doesn't exist. In each of these scenarios, visitors will be able to see your customized content as opposed to a generic error page.
Custom Error Pages in Shared Web Hosting
You'll be able to set up personalized error pages for any of your Internet sites effortlessly when you use any of our shared web hosting. This can be done from the Hosted Domains section of the Hepsia Control Panel, provided with all accounts and when you go there, you can set your custom pages independently for any domain or subdomain. You should upload the files to your account in advance and input the links to them during the process. This function could be de-activated at any time and the options you shall be able to to pick from are a generic page from our system or a default Apache server page. Tailor-made error pages can be set with an .htaccess file as well. The file should be put in the domain or subdomain folder and it should include some system code and links to the pages. If you aren't tech-savvy, you may copy the entire content required for the file from our Help section.
Custom Error Pages in Semi-dedicated Servers
Adding your pages for any of the four error types to any site hosted from a semi-dedicated server account with us will be very basic and will not take more than several clicks. After you upload the files to your account, you could navigate to the Hosted Domains section of your Hepsia CP and edit any of the domains and subdomains listed there through an intuitive interface with drop-down navigation. You may select what page should display for every error type. The choices are a default Apache web server page or a page from our system, and customized pages. Should you pick the last option, you have to type the link to each and every page in your account, then save the change. The link or the type of page that appears if a user encounters an error can be modified anytime. In case you’re more experienced, you could use an .htaccess file to set custom error pages as well, as opposed to using our integrated generator instrument, and if you pick this option, the file must be positioned inside the root directory of a specific domain or subdomain.