BuycPanel Blog

BuycPanel Blog

Latest news and updates

11/12/2014 – Creating Custom Error Pages

Posted by Jamison on 12 11 2014.

cPanel is considered to be the most popular choice as a cloud hosting panel. It is known to be a good choice because you can use its interface and take advantage of the great selection of features that allow you to manage everything you nee for your site. Managing your account using cPanel enables you to do a lot of things—manage your emails, access your files, get access to your database, protect your directories with passwords, provide back-up for your site, and manage your domains.


cPanel is also known for its user friendly tools that promise convenience and functionality. If you are hesitant to manage your site on your own, then you should go through cPanel first and you will realize that you do not need to spend a huge amount of money to hire an expert. You can learn the commands, and study the functions so you can make the most out of your website management experience. cPanel offers various features that will surely help you boost your website’s traffic and drive incremental results for your business.


One of the features of cPanel is that it allows you to create custom error pages in your site. Basically, error codes are numbered codes which is used by the server in informing the website visitor about the error encountered. A custom error page is the page you would want your website visitor to see instead of the error code. Here is a list of the most common error codes that your potential client can encounter:


401 : Unauthorized


Access to the URL resource requires user authentication which either has not yet been provided, or which has been provided but failed. This is commonly known as password protection. Unless you have a good reason to do so, it is not recommended to redirect a 401 error


403 : Forbidden


The request was a legal request, but the server is refusing to respond to it. Unlike a 401 Unauthorized response, authenticating will make no difference. This is usually due to a scripting or file permissions issue.


404 : Not Found


This response code indicates that the visitor was able to communicate with the server, but either the server could not find what was requested, or it was configured not to fulfill the request and not reveal the reason. Error 404 should not be confused with “server not found” or similar errors, in which a connection to the destination server cannot be made at all.


500 : Internal Server Error


Your web server encountered an unexpected condition that prevented it from fulfilling the request by the visitor. Basically, something has gone wrong, but the server can not be more specific about the error condition in its response to the visitor.


503 : Service Unavailable


This error is likely due to an issue on your server which will require additional assistance. Typically this can occur when your server is temporarily overloaded or undergoing maintenance.


You simply have to login to cPanel and click Error Pages, under Advanced. Select the domain or subdomain you want and click the page you want to edit. Insert your own custom page code (in HTML or SHTML). The changes will be applied after you click Save.


It is important that you refresh your browser if you are still encountering error pages. You can also use the existing pages as the resulting page.  You just have to ensure that the error page is not larger than 1 kilobyte so you can display the custom error page.