If a certain page on a site doesn't load for some reason or in case a link is broken, the website visitor shall see an error page with some generic message. The page shall have nothing in common with the rest of the website, which may make the visitor leave the website. A likely solution in cases like this is a function made available from some hosting companies - the option to set up your own personalized error pages that will have the exact same layout as your website and which can contain any text or images you want dependent upon the specific error. There are 4 popular errors that can take place and they involve these particular so-called HTTP status codes - 400, when your world-wide web browser sends a bad request to the web server and it cannot be processed; 401, if you're supposed to log in to see a page, but you haven't done this yet; 403, if you do not have a permission to view a specific page; and 404, if a link that you've clicked leads to a file which does not exist. In any of these situations, site visitors will be able to see your custom content instead of a generic error page.

Custom Error Pages in Cloud Website Hosting

You'll be able to set up custom made error pages for each of your domains or subdomains. The function is supported by all cloud website hosting solutions which we offer, so when you log in to your Hepsia Control Panel and navigate to the Hosted Domains section, you may click on the Edit button for a domain/subdomain and in the pop-up that"ll be displayed, you could select the sort of error page that should show up - a default one from our system, a standard Apache server page or a personalized one. For the aforementioned alternative, you'll have to specify the URL to the page, so if you use custom pages, you need to upload the files inside your hosting account first. An alternative way is to use an .htaccess file positioned in the domain or subdomain folder with a line for each and every error type. The precise syntax can be found in our Knowledge Base, so you can use this feature even if you don't have any previous experience.

Custom Error Pages in Semi-dedicated Servers

Our semi-dedicated servers support tailor-made error pages, so you'll be able to use this feature for every single domain or subdomain hosted in your account. All it will take to do that is to visit 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 could do this separately for each and every error type. You will be able to switch back to a generic error page anytime if needed and the change will take effect straightaway. A different way to get the same result is to put an .htaccess file in the domain or subdomain folder of the site which you want to change and to input a few lines of program code within it. If you want to try this method, you may copy and paste the necessary code from our Knowledge Base article on custom error pages, hence you won't need any coding skills or prior experience.