Custom Error Pages
Understand what a Custom Error Page is, what function does it have and ways to set one.
If a page on your site doesn't load, an error message shall be shown to the website visitor. Because there are different errors, there are different pages that'll display, but what is common for all of them is that they are generic and most likely shall have practically nothing that is similar to the layout of your website, which may be annoying for any visitor. This is the main reason why website hosting providers have introduced a function known as Custom Error Pages. For a number of different errors, site visitors shall see your custom content, which may be informative or amusing, in accordance with your personal preference, and that will match the overall design of your Internet site, so the pages will not look like they're not part of your Internet site at all. You could use this option for a number of errors - 400 (Bad request), 401 (Unauthorized), 403 (Forbidden) and 404 (File not Found).
-
Custom Error Pages in Website Hosting
You'll be able to set up custom error pages for any of your domains or subdomains. The feature is supported by all
website hosting package which we offer, so when you log in to the Hepsia Control Panel and go to 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 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 aforementioned alternative, you have to specify the URL to the page, so if you use personalized pages, you must upload the files in your website hosting account first. An alternative way is to use an .htaccess file positioned in the domain or subdomain folder with a line for each error type. The correct syntax can be seen in our Knowledge Base, so that you can use this function even if you don't have any previous experience.
-
Custom Error Pages in Semi-dedicated Hosting
All our
semi-dedicated packages support personalized error pages, thus you'll be able to use this feature for every single domain or subdomain hosted in your account. All it will take to do this is to navigate to the Hosted Domains section of the Hepsia CP, to click on the Edit button related to the given domain/subdomain and to type the link to the custom-made file. You can do this separately for every error type. You shall be able to switch back to a default error page whenever you want if needed and the change shall take effect right away. Another way to get the exact same result is to place an .htaccess file inside the domain or subdomain folder of the website that you want to modify and to input a couple of lines of program code within it. If you want to try this method, you may copy and paste the necessary code from our Knowledge Base article on custom error pages, therefore you'll not need any programming skills or prior experience.