Each time a page on your website does not load, an error message shall be displayed to the visitor. Since there are different errors, there are different pages that'll appear, but what is common for all of them is that they're generic and probably shall have nothing that resembles the layout of your website, which could be aggravating for any visitor. This is the reason why web hosting companies have introduced a function called Custom Error Pages. For a number of different errors, visitors shall see your unique content, which can be informative or funny, depending on your choice, and which shall match the overall layout of your Internet site, so the pages shall not look like they're not part of your site at all. You could use this option for numerous errors - 400 (Bad request), 401 (Unauthorized), 403 (Forbidden) and 404 (File not Found).
Custom Error Pages in Hosting
When you get a Linux hosting from our company, you will be able to set custom error pages for your Internet sites easily, because this feature is part of all of our plans. Once you've created the files and uploaded them to your web hosting account, you can check out the Hosted Domains section of your Hepsia CP and click on the Edit button for the specific domain or subdomain. In the pop-up that will show up, you'll see drop-down options menus for all four kinds of errors and for each one of them you may pick an Apache default page, a generic page from our system or a custom page. Should you select the 3rd option, you should just type the URL to the file which you have uploaded then save the change. One other way to set personalized error pages is to create an .htaccess file in the domain or subdomain folder and to include a few lines of code in it. If you do not have preceding experience or if you're just unsure how to do this, you can simply copy and paste the code from our Knowledge Base article on that subject.
Custom Error Pages in Semi-dedicated Hosting
All Linux semi-dedicated hosting packages that we supply support custom error pages and it shall not take more than several clicks inside your Hepsia website hosting Control Panel to use this function. The option can be found in the Hosted Domains section of your Control Panel in which you will have to type in the links to the custom-made files via basic drop-down menus and a user-friendly interface. Of course, you need to upload them in your account before that. In case you do not need to employ this function at some point, you can easily deactivate it just as quickly and select an Apache server page or a default page from our system to be shown if your visitors encounter an error. If you'd prefer, you may also use an .htaccess file to permit the custom made error pages. The file has to include a specific line of code as well as a link for each and every error type and you may find an example of the whole content for all four error types in our Help section.