If a certain page on a website doesn't load for some reason or in case 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 could make the visitor leave your website. A solution in cases like this is a function offered by some website hosting companies - the ability to set your own custom-made error pages which will have exactly the same style and design as your website and which can contain any text or images that you would like based on the particular error. There are 4 popular errors which could 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 some page, but you have not done this yet; 403, if you don't have an authorization to see a certain page; and 404, when a link which you've clicked leads to a file that does not exist. In each of these situations, visitors shall be able to see your personalized content as opposed to a generic error page.
Custom Error Pages in Hosting
You will be able to set up custom made error pages for all of your domains or subdomains. The function is supported by all hosting
solutions that we provide, so when you log in to the Hepsia Control Panel and navigate to the Hosted Domains section, you can easily click on the Edit button for a domain/subdomain and in the pop-up that will show up, you may choose the sort of error page which should show up - a default one from our system, a typical Apache web server page or a custom one. For the aforementioned alternative, you must assign the URL to the page, so if you use personalized pages, you should upload the files in your hosting account first. An alternative way is to use an .htaccess file placed inside the domain or subdomain folder with a line for every error type. The actual syntax can be seen in our Knowledge Base, so you can use this function even if you don't have any previous experience.
Custom Error Pages in Semi-dedicated Servers
Adding your pages for each of the four error types to any web site hosted in a semi-dedicated server
account with us will be really basic and will not take more than a few clicks. As soon as you upload the files to your account, you can go to the Hosted Domains section of your Hepsia CP and edit each of the domains and subdomains listed there through an intuitive interface with drop-down menus. You may pick what page should appear for each and every error type. The alternatives are a default Apache web server page or a page from our system, and customized pages. Should you choose the aforementioned option, you will need to type in the link to each and every page in your account, then save the change. The link or the sort of page that will be displayed in case a user encounters an error can be modified at any time. If you're more experienced, you can use an .htaccess file so as to set custom error pages too, rather than using our integrated generator software tool, and if you select this option, the file needs to be placed inside the root directory of a given domain or subdomain.