When a page on your website doesn't load, an error message will be shown to the site visitor. Because there are different errors, there are different pages that will appear, but what's standard for all of them is that they are generic and most likely will have practically nothing that is similar to the design of your site, which can be aggravating for any website visitor. This is the main reason why web hosting companies have introduced a feature referred to as Custom Error Pages. For a number of different errors, website visitors will see your customized content, which could be informative or witty, in accordance with your taste, and that will match the overall layout of your site, so the pages won't look like they're not part of your Internet site at all. You can use this option for many errors - 400 (Bad request), 401 (Unauthorized), 403 (Forbidden) and 404 (File not Found).
Custom Error Pages in Web Hosting
You'll be able to set up custom made error pages for any of your domains or subdomains. The function is supported by all web hosting solutions that we offer, so when you log in to your Hepsia CP and go to the Hosted Domains section, you can easily click on the Edit button for a domain/subdomain and in the pop-up that will be displayed, you could pick the kind of error page which should show up - a default one from our system, a standard Apache server page or a personalized one. For the latter option, you have to specify the URL to the page, so if you use personalized pages, you must upload the files in your web hosting account first. An alternative way is to use an .htaccess file placed inside the domain or subdomain folder with a line for each and every error type. The exact syntax can be seen in our Knowledge Base, so you can use this feature even if you do not have any previous experience.
Custom Error Pages in Semi-dedicated Servers
If you host your sites in a semi-dedicated server account with our company, you may set custom error pages for any of them with ease via our in-house built Hepsia hosting CP. With only a couple of mouse clicks inside the Hosted Domains section, you can edit the default setting from a system page to a tailor-made one for any of the 4 error types. All you should do is provide a link to each and every file you have uploaded before that and then save the change. If necessary, you will be able to revert this modification at any time and in exactly the same way. If you'd like, you could use an .htaccess file too. It must be created/uploaded within the domain or subdomain folder associated with the internet site whose error pages you would like to modify and the content for this sort of file can be found in our Help article on this matter.