If a particular page on an Internet site doesn't load for some reason or in case a link is not functioning, the site visitor will see an error page with some generic message. The page will have nothing in common with the rest of the Internet site, that could make the visitor leave your site. A likely solution in this case is a function offered by some hosting companies - the option to set your own customized error pages which will have exactly the same design and style as your Internet site and which could contain any text or images that you'd like depending on the particular error. There are four common errors that could occur and they involve these particular so-called HTTP status codes - 400, when your browser sends a bad request to the web server and it can't be processed; 401, if you're supposed to log in to see a webpage, but you haven't done so yet; 403, if you don't have a permission to see a certain page; and 404, if a link which you have clicked leads to a file that doesn't exist. In all of these scenarios, website visitors will be able to see your customized content instead of a generic error page.
Custom Error Pages in Shared Website Hosting
When you acquire a Linux shared website hosting package from our company, you'll be able to set personalized error pages for your websites easily and quickly, because this function is part of all our packages. After you have created the files and uploaded them to your hosting account, you can go to the Hosted Domains section of your Hepsia CP and click on the Edit button for the specific domain or subdomain. In the pop-up which will show up, you shall see drop-down options menus for all four types of errors and for each of them you may select an Apache default page, a generic page from our system or a custom page. Should you pick the 3rd option, you should only type the URL to the file you have uploaded and save the change. One other way to set custom error pages is to set up an .htaccess file inside 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 simply not sure how to do this, you may just copy and paste the code from our Knowledge Base article on that topic.
Custom Error Pages in Semi-dedicated Hosting
All semi-dedicated hosting packages which we offer support custom made error pages and it shall not take more than a few mouse clicks in your Hepsia website hosting Control Panel to use this feature. The option is included in the Hosted Domains section of your Control Panel in which you will need to enter the links to the custom-made files via very simple drop-down menus and an easy to work with interface. Keep in mind, you should upload them to your account before that. If you don't want to employ this function at some point, you can deactivate it just as easily and pick an Apache server page or a default page from our system to be shown if your visitors encounter an error. If you'd like to, you can also use an .htaccess file to enable the custom error pages. The file needs to contain a specific line of code as well as a link for each error type and you may discover an example of the whole content for all four error types in our Help section.