If a particular page on a website doesn't load for some reason or if a link is not functioning, the website visitor will see an error page with a generic message. The page will have nothing in common with the rest of the website, that may make the visitor leave the site. A solution in this case is a function offered by some hosting companies - the option to set your own customized error pages which shall have the exact same design and style as your website and that could contain any text or images which you want dependent upon the particular error. There are 4 standard errors that may take place 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 cannot be processed; 401, in case you are supposed to log in to see a web page, but you have not done so yet; 403, if you do not have a permission to see a particular page; and 404, when a link which you've clicked leads to a file which does not exist. In any of these cases, site visitors shall be able to see your custom made content instead of a generic error page.
Custom Error Pages in Shared Website Hosting
You will be able to set up custom made error pages for each of your domains or subdomains. The function is supported by all shared website hosting package which we provide, so when you log in to the Hepsia CP and check out the Hosted Domains section, you can click on the Edit button for a domain/subdomain and in the pop-up which will appear, you could select the type of error page that should appear - a default one from our system, a standard Apache server page or a personalized one. For the last mentioned option, you must specify the URL to the page, so if you use customized pages, you must upload the files in your website hosting account first. Another way is to use an .htaccess file placed in the domain or subdomain folder with a line for each and every error type. The actual syntax can be seen in our Knowledge Base, to help you use this feature even if you do not have any previous experience.
Custom Error Pages in Semi-dedicated Hosting
All our Linux semi-dedicated hosting support customized error pages, so you shall be able to use this function for each domain or subdomain hosted in your account. All it will take to do this is to navigate to the Hosted Domains section of the Hepsia CP, to click the Edit button linked to the specific domain/subdomain and to input the link to the custom-made file. You can do this independently for every error type. You'll be able to switch back to a generic error page anytime if needed and the change shall take effect immediately. An alternative way to achieve the same result is to put an .htaccess file inside the domain or subdomain folder of the website which you want to modify and to type in several lines of code within it. If you would like to try this method, you can copy and paste the required code from our Knowledge Base article on custom error pages, thus you'll not need any programming skills or prior experience.