If a specific page on a website does not load for some reason or if a link is not functioning, the website visitor shall see an error page with some generic message. The page shall have nothing in common with the rest of the site, which may make the visitor leave your site. A possible solution in such a case is a function made available from some hosting providers - the ability to set your own custom error pages which shall have the same design and style as your website and which could contain any images or text which you want dependent upon the specific error. There are 4 common errors that can occur and they involve these particular so-called HTTP status codes - 400, when your web browser sends a bad request to the hosting server and it cannot be processed; 401, if you are supposed to log in to see some page, but you have not done so yet; 403, if you don't have an authorization to view a certain page; and 404, when a link which you've clicked leads to a file that does not exist. In any of these scenarios, website visitors will be able to see your customized content as opposed to a generic error page.

Custom Error Pages in Hosting

When you purchase a Linux hosting from us, you shall be able to set custom error pages for your websites easily and quickly, since this feature is a part of all our solutions. 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 CP and click on the Edit button for the specific domain or subdomain. In the pop-up which will show up, you will see drop-down menus for all four kinds of errors and for each of them you may select an Apache default page, a generic page from our system or a personalized page. In case you select the third option, you should simply input 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 in the domain or subdomain folder and to include a few lines of program code in it. In case you don't have prior experience or if you're simply not sure how to do this, you could just copy/paste the code from our Knowledge Base article on that subject.

Custom Error Pages in Semi-dedicated Servers

All of the Linux semi-dedicated hosting service that we supply support personalized error pages and it will not take more than a couple of mouse clicks from your Hepsia website hosting Control Panel to use this function. The option can be found in the Hosted Domains section of your CP where you'll have to type in the links to the custom-made files through very simple drop-down menus and an easy to use interface. Keep in mind, you should upload them to your account before that. In case you don't need to employ this feature at some point, you could deactivate it just as quickly and pick an Apache server page or a default page from our system to be viewable whenever your visitors encounter an error. If you'd like to, you could also use an .htaccess file to allow 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 discover an example of the entire content for all four error types in our Help section.