If a particular page on an Internet site doesn't load for some reason or in case a link is not functioning, the website visitor shall see an error page with some generic message. The page will have nothing in common with the rest of the Internet site, that can make the visitor leave the website. A solution in cases like this is a feature made available from some hosting companies - the option to set up your own custom-made error pages which will have the same design and style as your site and which may contain any images or text you want dependent upon the particular error. There are four standard errors which could take place and they involve these particular so-called HTTP status codes - 400, when your web browser sends a bad request to the server and it cannot be processed; 401, if you are supposed to log in to see some web page, but you have not done so yet; 403, if you do not have a permission to see a certain page; and 404, if a link which you have clicked leads to a file that doesn't exist. In any of these scenarios, website visitors will be able to see your customized content rather than a generic error page.

Custom Error Pages in Hosting

If you obtain a Linux hosting package from us, you'll be able to set custom made error pages for your sites easily, as this feature is a part of all our packages. As soon as you have created the files and uploaded them to your hosting account, you should 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 which will appear, you'll see drop-down options menus for all 4 kinds of errors and for each of them you could select an Apache default page, a generic page from our system or a personalized page. Should you choose the 3rd option, you should only type the URL to the file you have uploaded and save the change. Another way to set custom error pages is to create an .htaccess file in the domain or subdomain folder and to add several lines of program code in it. If you don't have preceding experience or if you're simply uncertain how to do this, you can just copy/paste the code from our Knowledge Base article on that topic.

Custom Error Pages in Semi-dedicated Hosting

All our Linux semi-dedicated hosting packages support tailor-made error pages, so you shall be able to employ this feature for each domain or subdomain hosted inside your account. All it will take to do that is to visit the Hosted Domains section of the Hepsia Control Panel, to click on the Edit button associated with the given domain/subdomain and then to input the link to the custom file. You'll be able to do this separately for each error type. You shall be able to switch back to a default error page at any time if required and the change will take effect instantly. A different way to get the same exact result is to place an .htaccess file inside the domain or subdomain folder associated with the site which you want to modify and to input a few lines of program code within it. If you need to try this method, you could copy and paste the needed code from our Knowledge Base article on custom error pages, which means that you won't need any programming skills or prior experience.