Custom Error Pages
Understand what a Custom Error Page is, what role does it have and the way to make one.
If you have browsed lots of websites, you've probably come across some error message every now and then. An error can take place if the hosting server can't process a request (Error 400), if you have to log in in order to see some content and you haven't done so (Error 401), if you are not permitted to access some webpage (Error 403) or when a link leads to a file which is not on the website hosting server (Error 404). Encountering this type of messages could often be irritating as the pages don't have anything in common with the actual Internet site. That’s why some website hosting providers permit you to use your own error pages that will match the design of your own Internet site and which could have any content that you'd like - information why the error has taken place, a suggestion how to proceed or even some witty comment. Such a feature shall help you keep the visitor on the site whatever the error and the reason for it.
-
Custom Error Pages in Shared Hosting
You'll be able to set up custom error pages for each of your domains or subdomains. The feature is supported by all
shared hosting solutions that we provide, so once you log in to your Hepsia CP and go to the Hosted Domains section, you may click on the Edit button for a domain/subdomain and in the pop-up that"ll show up, you may choose the type of error page that should show up - a default one from our system, a typical Apache web server page or a customized one. For the last mentioned option, you'll have to specify the URL to the page, so if you use custom pages, you need to upload the files in your website hosting account first. An alternative way is to use an .htaccess file located inside the domain or subdomain folder with a line for each and every error type. The actual syntax can be seen in our Knowledge Base, to help you use this function even if you do not have any previous experience.
-
Custom Error Pages in Semi-dedicated Servers
If you host your websites in a
semi-dedicated server account from us, you could set tailor-made error pages for any of them effortlessly through our in-house built Hepsia hosting Control Panel. With only several clicks in the Hosted Domains section, you can edit the default setting from a system page to a custom one for each of the 4 error types. All you have to do is supply a link to every single file which you have uploaded before that and then save the change. If needed, you shall be able to revert this customization anytime and in exactly the same way. If you want, you could use an .htaccess file too. It has to be created/uploaded within the domain or subdomain folder related to the site whose error pages you want to change and the content for such a file can be found in our Help article about this matter.