If you have browsed a lot of sites, you've probably stumbled upon some error message every now and then. An error may occur if the web server cannot process a request (Error 400), if you have to log in in order to see some content and you haven't done so (Error 401), if you are not allowed to access some webpage (Error 403) or if a link leads to a file that is not on the web server (Error 404). Encountering this type of messages may sometimes be irritating because the pages have absolutely nothing in common with the actual Internet site. That’s why some website hosting providers allow you to set your own error pages that'll match the layout of your own website and which can have any content which you want - information why the error has taken place, a suggestion what you can do or even some humorous remark. This kind of function shall help you keep the visitor on the website no matter the error or the reason for it.

Custom Error Pages in Web Hosting

If you get a web hosting from our company, you shall be able to set custom error pages for your websites quickly and easily, since this feature is part of all our plans. After you've created the files and uploaded them to your web hosting account, you can go to the Hosted Domains section of your Hepsia CP and click on the Edit button for the selected domain or subdomain. Inside the pop-up that will be displayed, you shall see drop-down menus for all 4 types of errors and for each one of them you can select an Apache default page, a generic page from our system or a custom page. If you pick the third option, you should simply input the URL to the file which you have uploaded and save the change. A different way to set custom error pages is to create an .htaccess file inside the domain or subdomain folder and to add a few lines of program code in it. If you don't have prior experience or if you're just not sure how to do this, you could just copy and paste the code from our Knowledge Base article on that topic.