If a particular page on a website does not load for some reason or in case a link is not functioning, the site visitor shall see an error page with some generic message. The page will have nothing in common with the rest of the Internet site, that could make the visitor leave the website. A possible solution in cases like this is a function offered by some website hosting companies - the ability to set your own custom error pages which will have identical style and design as your site and that may contain any text or images which you want dependent upon the particular error. There are 4 standard errors which may take place and they involve these so-called HTTP status codes - 400, when your Internet browser sends a bad request to the web server and it cannot be processed; 401, in case you are supposed to log in to see some page, but you have not done this yet; 403, if you do not have a permission to see a particular page; and 404, if a link that you've clicked leads to a file that doesn't exist. In each of these scenarios, website visitors will be able to see your customized content as opposed to a generic error page.
Custom Error Pages in Shared Hosting
You shall be able to set up customized error pages for all of your domains or subdomains. The feature is supported by all shared hosting
package which we offer, so once you log in to the Hepsia Control Panel and go to the Hosted Domains section, you can click on the Edit button for a domain/subdomain and in the pop-up that"ll appear, you could choose the sort of error page which should appear - a default one from our system, a typical Apache server page or a custom one. For the latter option, you have to assign the URL to the page, so if you use customized pages, you must upload the files inside your hosting account first. Another way is to use an .htaccess file located in the domain or subdomain folder with a line for every error type. The precise syntax can be located in our Knowledge Base, so that you can use this feature even if you do not have any previous experience.
Custom Error Pages in Semi-dedicated Servers
All of our semi-dedicated servers
support custom error pages, so you will be able to employ this function for every single domain or subdomain hosted in your account. All it takes to do that is to check out the Hosted Domains section of the Hepsia CP, to click on the Edit button related to the particular domain/subdomain and to type in the link to the custom-made file. You are able to do this independently for each error type. You shall be able to switch back to a standard error page whenever you want if necessary and the change will take effect at once. An alternative way to achieve the same result is to set an .htaccess file inside the domain or subdomain folder of the site that you would like to edit and to enter several lines of code within it. If you'd like to try this method, you can copy and paste the necessary code from our Knowledge Base article on custom error pages, which means that you won't need any computer programming skills or previous experience.