Custom Error Pages
Understand what a Custom Error Page is, what role does it have and ways to make one.
If you have looked at a lot of websites, you've probably stumbled upon some error message from time to time. An error may take place if the web server can't process a request (Error 400), if you need to log in so that you can see some content and you have not done so (Error 401), if you aren't allowed to access a page (Error 403) or if a link leads to a file that isn't on the website hosting server (Error 404). Getting this type of messages may often be frustrating because the pages don't have anything in common with the actual site. That’s why some web hosting providers permit you to set your own error pages which will match the design of your own site and which could have any content which you want - details why the error has taken place, a suggestion what you can do or even some funny comment. This kind of function can help you keep the visitor on the website regardless of the error or the reason for it.
-
Custom Error Pages in Website Hosting
When you buy a
Linux website hosting from our company, you will be able to set customized error pages for your Internet sites easily and quickly, because this feature is a part of all our packages. Once you have created the files and uploaded them to your hosting account, you should check out the Hosted Domains section of your Hepsia Control Panel and click on the Edit button for the specific domain or subdomain. Inside the pop-up that will be displayed, you will see drop-down options menus for all 4 sorts of errors and for each one of them you can choose an Apache default page, a generic page from our system or a custom made page. If you select the 3rd option, you should just input the URL to the file that you have uploaded then save the change. A different way to set personalized error pages is to set up an .htaccess file inside the domain or subdomain folder and to include several lines of program code in it. If you do not have preceding experience or if you are just not sure how to do this, you may simply copy and paste the code from our Knowledge Base article on that matter.
-
Custom Error Pages in Semi-dedicated Servers
All of our
semi-dedicated plans support tailor-made error pages, so you'll be able to employ this function for each domain or subdomain hosted inside your account. All it will take to do this is to check out the Hosted Domains section of the Hepsia Control Panel, to click the Edit button linked to the given domain/subdomain and to enter the link to the custom-made file. You could do this independently for each error type. You will be able to switch back to a default error page whenever you want if needed and the change shall take effect right away. Another way to achieve the same result is to set an .htaccess file in the domain or subdomain folder associated with the site that you want to change and to enter several lines of code within it. If you need to try this method, you could copy and paste the necessary code from our Knowledge Base article on custom error pages, thus you will not need any computer programming skills or previous experience.