If a certain page on a website does not load for some reason or in case a link is not working, the site visitor will 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 website. A likely solution in cases like this is a function made available from some web hosting service providers - the option to set up your own customized error pages that shall have identical layout as your site and which may contain any text or images which you want depending on the particular error. There are 4 popular errors which could take place and they involve these so-called HTTP status codes - 400, when your browser sends a bad request to the hosting server and it can't be processed; 401, if you're supposed to log in to see a webpage, but you haven't done this yet; 403, if you do not have a permission to view a specific page; and 404, in case a link which you have clicked leads to a file which does not exist. In each of these scenarios, website visitors will be able to see your custom made content as opposed to a generic error page.

Custom Error Pages in Web Hosting

You'll be able to set up customized error pages for each of your domains or subdomains. The function is supported by all web hosting plans that we provide, so when you log in to the Hepsia Control Panel and go to the Hosted Domains section, you can click on the Edit button for a domain/subdomain and in the pop-up which will be displayed, you could select the kind of error page which should show up - a default one from our system, a standard Apache web server page or a personalized one. For the aforementioned alternative, you need to specify the URL to the page, so when you use personalized pages, you must upload the files inside your Internet 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 located in our Knowledge Base, to help you use this feature even if you don't have any previous experience.

Custom Error Pages in Semi-dedicated Servers

Our semi-dedicated hosting plans support customized error pages, thus 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 navigate to the Hosted Domains section of the Hepsia Control Panel, to click the Edit button related to the specific domain/subdomain and then to type in the link to the custom file. You can do this separately for every error type. You'll be able to switch back to a generic error page whenever you want if required and the change will take effect instantly. An alternative way to achieve the exact same result is to set an .htaccess file inside the domain or subdomain folder of the Internet site which you'd like to modify and to enter a few lines of program code within it. If you need to try this method, you can copy and paste the needed code from our Knowledge Base article on custom error pages, so you won't need any computer programming skills or prior experience.