If a specific page on a website does not 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 will have nothing in common with the rest of the website, that may make the visitor leave the site. A potential solution in this case is a feature made available from some website hosting providers - the option to set your own custom-made error pages that shall have the exact same design and style as your Internet site and that can contain any images or text that you would like depending on the particular error. There are four well-known errors that can take place and they involve these so-called HTTP status codes - 400, when your Internet browser sends a bad request to the server and it cannot be processed; 401, if you are supposed to log in to see some web page, but you haven't done so yet; 403, if you do not have a permission to see a certain page; and 404, when a link which you have clicked leads to a file that does not exist. In each of these scenarios, visitors shall be able to see your customized content as opposed to a generic error page.
Custom Error Pages in Shared Web Hosting
If you purchase a shared web hosting service
from us, you'll be able to set customized error pages for your sites easily and quickly, because this function is part of all of our solutions. After you've created the files and uploaded them to your web hosting account, you should check out the Hosted Domains section of your Hepsia CP and click on the Edit button for the specific domain or subdomain. Inside the pop-up which will appear, you will see drop-down options menus for all four types of errors and for each of them you could choose an Apache default page, a generic page from our system or a customized page. In case you choose the 3rd option, you should just enter the URL to the file you have uploaded then save the change. Another way to set custom made error pages is to set up an .htaccess file in the domain or subdomain folder and to include a few lines of code in it. If you don't have prior experience or if you're just unsure how to do this, you may just copy and paste the code from our Knowledge Base article on that matter.
Custom Error Pages in Semi-dedicated Hosting
All Linux semi-dedicated hosting services
that we supply support customized error pages and it shall not take more than a couple of mouse clicks inside your Hepsia hosting Control Panel to use this function. The option can be found in the Hosted Domains section of your CP in which you'll have to type in the links to the custom-made files via basic drop-down menus and a user-friendly interface. Of course, you must upload them inside your account before that. If you do not want to use this function at some point, you could deactivate it just as fast and select an Apache server page or a default page from our system to be viewable if your visitors encounter an error. If you'd like to, you could also use an .htaccess file to activate the custom made error pages. The file has to include a particular line of code plus a link for every single error type and you can easily discover an example of the entire content for all four error types in our Help section.