If a particular page on a website does not load for some reason or in case a link is not working, the website visitor will see an error page with a generic message. The page shall have nothing in common with the rest of the website, that could make the visitor leave your Internet site. A potential solution in cases like this is a feature made available from some web hosting companies - the ability to set up your own customized error pages which will have the same design and style as your Internet site and that can contain any images or text you want dependent upon the particular error. There are 4 well-known errors that could take place and they involve these particular so-called HTTP status codes - 400, when your browser sends a bad request to the hosting server and it can't be processed; 401, in case you are supposed to log in to see a page, but you haven't done this yet; 403, if you don't 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 shall be able to see your personalized content instead of a generic error page.
Custom Error Pages in Hosting
When you buy a Linux hosting from us, you will be able to set customized error pages for your sites fast and easy, since this feature is part of all of our plans. As soon as you've created the files and uploaded them to your web hosting account, you can go to the Hosted Domains section of your Hepsia Control Panel and click on the Edit button for the particular domain or subdomain. Inside the pop-up that will show up, you will see drop-down options menus for all four kinds of errors and for each of them you may pick an Apache default page, a generic page from our system or a customized page. If you choose the 3rd option, you should only type the URL to the file that you've uploaded and save the change. A different way to set custom made error pages is to create an .htaccess file inside the domain or subdomain folder and to include a few lines of code in it. If you don't have preceding experience or if you are just uncertain how to do this, you can simply copy/paste the code from our Knowledge Base article on that topic.
Custom Error Pages in Semi-dedicated Hosting
All of our Linux semi-dedicated hosting support tailor-made error pages, so you'll be able to employ 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 associated with the specific domain/subdomain and to type the link to the custom file. You could do this independently for every error type. You'll be able to switch back to a generic error page at any time if necessary and the change will take effect straightaway. An alternative way to get the same exact result is to put an .htaccess file inside the domain or subdomain folder related to the site that you'd like to modify and to enter a few lines of program code inside it. If you would like to try this method, you can copy and paste the needed code from our Knowledge Base article on custom error pages, hence you will not need any coding skills or previous experience.