If a specific page on an Internet site does not load for some reason or in case a link is not functioning, the visitor shall see an error page with some generic message. The page shall 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 feature made available from some web hosting companies - the option to set your own custom error pages that will have the same style and design as your website and which may contain any images or text that you'd like depending on the particular error. There are 4 standard errors which may take place and they involve these so-called HTTP status codes - 400, when your web browser sends a bad request to the web server and it can't be processed; 401, if you are supposed to log in to see some webpage, but you have not done this yet; 403, if you don't have a permission to view a particular page; and 404, if a link that you've clicked leads to a file which doesn't exist. In any of these cases, website visitors will be able to see your custom made content instead of a generic error page.
Custom Error Pages in Website Hosting
You'll be able to set up customized error pages for all of your sites without difficulty when you use any of our Linux website hosting packages. This can easily be done using the Hosted Domains section of the Hepsia CP, offered with all accounts as soon as you go there, you can set your custom pages independently for any domain or subdomain. You should upload the files to your account in advance and input the links to them during the process. This function could be de-activated at any time and the options you shall be able to to choose from are a conventional page from our system or a default Apache web server page. Tailor-made error pages may be set with an .htaccess file as well. The file should be placed in the domain or subdomain folder and it should include some system code and links to the pages. If you are not tech-savvy, you can copy the whole content you'll need for the file from our Help section.
Custom Error Pages in Semi-dedicated Hosting
Our Linux semi-dedicated hosting packages support tailor-made error pages, so you'll be able to use this function for any domain or subdomain hosted inside your account. All it takes to do this is to go to the Hosted Domains section of the Hepsia CP, to click the Edit button linked to the specific domain/subdomain and then to enter the link to the custom-made file. You'll be able to do this separately for each and every error type. You'll be able to switch back to a standard error page at any time if necessary and the change shall take effect at once. A different way to get the exact same result is to set an .htaccess file in the domain or subdomain folder related to the website that you'd like to modify and to enter several lines of code inside it. If you want to try this method, you could copy and paste the necessary code from our Knowledge Base article on custom error pages, therefore you shall not need any programming skills or previous experience.