If a specific page on a site does not load for some reason or if a link is broken, the website visitor will see an error page with a generic message. The page will have nothing in common with the rest of the site, that can make the visitor leave your website. A solution in such a case is a function offered by some website hosting providers - the option to set your own personalized error pages that shall have the same layout as your website and which could contain any text or images that you'd like dependent upon the specific error. There are 4 common errors that may take place and they involve the following so-called HTTP status codes - 400, when your web browser sends a bad request to the server and it can't be processed; 401, if you are supposed to log in to see a web page, but you haven't done so yet; 403, if you do not have an authorization to view a specific page; and 404, when a link that you've clicked leads to a file which doesn't exist. In each of these scenarios, visitors shall be able to see your custom made content rather than a generic error page.
Custom Error Pages in Shared Hosting
If you get a Linux shared hosting service from our company, you'll be able to set customized error pages for your websites fast and easy, as this function is a part of all our packages. Once 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 specific domain or subdomain. Inside the pop-up which will show up, you'll see drop-down menus for all 4 kinds of errors and for each of them you can choose an Apache default page, a generic page from our system or a personalized page. Should you choose the third option, you should only input the URL to the file that you have uploaded and save the change. A different way to set personalized error pages is to set up an .htaccess file inside the domain or subdomain folder and to include a few lines of code in it. In case you don't have previous experience or if you are just uncertain how to do this, you can just copy and paste the code from our Knowledge Base article on that matter.
Custom Error Pages in Semi-dedicated Servers
Our Linux semi-dedicated servers support custom error pages, so you will be able to employ this feature for each domain or subdomain hosted in your account. All it takes to do this is to visit the Hosted Domains section of the Hepsia CP, to click the Edit button associated with the given domain/subdomain and to type the link to the custom file. You'll be able to do this separately for every error type. You will be able to switch back to a standard error page whenever you want if necessary and the change shall take effect straightaway. An alternative way to get the same exact result is to set an .htaccess file in the domain or subdomain folder associated with the website that you want to change and to input a couple of lines of program code inside it. If you need to try this method, you can copy and paste the necessary code from our Knowledge Base article on custom error pages, thus you'll not need any programming skills or prior experience.