If a certain page on a website does not load for some reason or in case a link is not functioning, the website visitor shall see an error page with a generic message. The page will have nothing in common with the rest of the site, that may make the visitor leave your Internet site. A potential solution in such a case is a function made available from some hosting providers - the option to set your own personalized error pages which will have exactly the same design and style as your site and which can contain any text or images that you would like dependent upon the particular error. There are 4 well-known errors which could occur and they involve these particular so-called HTTP status codes - 400, when your world-wide web browser sends a bad request to the web server and it cannot be processed; 401, if you are supposed to log in to see a webpage, but you have not done this yet; 403, if you do not have a permission to view a particular page; and 404, in case a link which you've clicked leads to a file which does not exist. In all of these scenarios, visitors will be able to see your personalized content as opposed to a generic error page.
Custom Error Pages in Web Hosting
When you buy a Linux web hosting from our company, you shall be able to set custom made error pages for your websites fast and easy, since this feature is a part of all of our plans. As soon as you have created the files and uploaded them to your hosting account, you can go to the Hosted Domains section of your Hepsia Control Panel and click on the Edit button for the selected domain or subdomain. In the pop-up which will be displayed, you'll see drop-down menus for all 4 sorts of errors and for each of them you may select an Apache default page, a generic page from our system or a personalized page. If you choose the 3rd option, you should simply enter the URL to the file which you have uploaded and save the change. One other way to set custom made error pages is to set up an .htaccess file in the domain or subdomain folder and to add a couple of lines of program code in it. In case you don't have prior experience or if you are simply unsure how to do this, you may just copy and paste the code from our Knowledge Base article on that matter.
Custom Error Pages in Semi-dedicated Hosting
All our semi-dedicated hosting packages 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 takes to do this is to go to the Hosted Domains section of the Hepsia CP, to click the Edit button related to the specific domain/subdomain and to enter the link to the custom-made file. You are able to do this individually for each error type. You will be able to switch back to a generic error page at any time if needed and the change will take effect instantly. An alternative way to get the very same result is to put an .htaccess file in the domain or subdomain folder related to the site which you'd like to edit and to type in a couple of lines of code inside it. If you need to try this method, you can copy and paste the needed code from our Knowledge Base article on custom error pages, therefore you won't need any programming skills or previous experience.