If a particular page on a site does not load for some reason or in case a link is broken, the site visitor will see an error page with a generic message. The page will have nothing in common with the rest of the Internet site, that could make the visitor leave your Internet site. A solution in cases like this is a feature made available from some website hosting service providers - the option to set up your own customized error pages that will have the same layout as your site and which could contain any images or text that you'd like depending on the specific error. There are 4 standard errors which may take place and they involve these particular so-called HTTP status codes - 400, when your web browser sends a bad request to the web server and it can't be processed; 401, in case you are supposed to log in to see a web page, but you have not done so yet; 403, if you do not have a permission to view a specific page; and 404, if a link that you've clicked leads to a file that does not exist. In all of these situations, site visitors will be able to see your custom made content instead of a generic error page.
Custom Error Pages in Hosting
You'll be able to set up customized error pages for all of your domains or subdomains. The function is supported by all hosting
package that we provide, so once you log in to your Hepsia CP and visit the Hosted Domains section, you can easily click on the Edit button for a domain/subdomain and in the pop-up which will show up, you could select the type of error page which should show up - a default one from our system, a typical Apache server page or a customized one. For the aforementioned alternative, you need to assign the URL to the page, so if you use custom pages, you need to upload the files in your hosting account first. Another way is to use an .htaccess file located in the domain or subdomain folder with a line for each and every error type. The exact syntax can be seen in our Knowledge Base, to help you use this feature even if you don't have any previous experience.
Custom Error Pages in Semi-dedicated Servers
All of our semi-dedicated hosting plans
support custom made error pages, so you'll be able to use this feature for each domain or subdomain hosted inside your account. All it will take to do that is to go to the Hosted Domains section of the Hepsia Control Panel, to click the Edit button associated with the given domain/subdomain and then to input the link to the custom-made file. You can do this independently for each and every error type. You shall be able to switch back to a default error page whenever you want if needed and the change will take effect at once. A different way to achieve the same result is to put an .htaccess file inside the domain or subdomain folder associated with the site which you'd like to change and to input several lines of code in it. If you would like to try this method, you could 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.