If a specific page on a site doesn't load for some reason or in case a link is not functioning, the visitor shall see an error page with a generic message. The page will have nothing in common with the rest of the website, which could make the visitor leave the site. A solution in cases like this is a function offered by some web hosting providers - the option to set your own custom-made error pages which shall have identical layout as your site and that could contain any text or images which you want dependent upon the specific error. There are 4 popular errors which can occur and they involve the following so-called HTTP status codes - 400, when your world-wide web browser sends a bad request to the server and it can't be processed; 401, if you're supposed to log in to see a web page, 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 that you have clicked leads to a file that doesn't exist. In any of these scenarios, site visitors shall be able to see your custom content instead of a generic error page.
Custom Error Pages in Web Hosting
You'll be able to set up custom error pages for all of your domains or subdomains. The function is supported by all web hosting solutions that we offer, so once you log in to your Hepsia Control Panel and go to the Hosted Domains section, you can easily click on the Edit button for a domain/subdomain and in the pop-up that will be displayed, you can select the kind of error page that should show up - a default one from our system, a conventional Apache server page or a customized one. For the last mentioned option, you need to assign the URL to the page, so if you use custom pages, you should upload the files inside your hosting account first. Another way is to use an .htaccess file placed inside the domain or subdomain folder with a line for each error type. The exact syntax can be seen in our Knowledge Base, so you can use this function even if you do not have any previous experience.
Custom Error Pages in Semi-dedicated Hosting
All our semi-dedicated hosting packages support custom error pages, so you will be able to use this function for each and every domain or subdomain hosted in your account. All it will take to do this is to go to the Hosted Domains section of the Hepsia CP, to click the Edit button associated with the particular domain/subdomain and then to input the link to the custom file. You are able to do this separately for each and every error type. You'll be able to switch back to a default error page anytime if required and the change will take effect at once. An alternative way to get the very same result is to set an .htaccess file in the domain or subdomain folder associated with the Internet site that you'd like to edit and to input several lines of program code within it. If you want to try this method, you could copy and paste the needed code from our Knowledge Base article on custom error pages, hence you'll not need any coding skills or prior experience.