With this cpanel error page tool, you can customize the error page. There are two simple ways to set a custom 404 error page.
One, use the Cpanel background Control Panel to add a method to set up 404 custom error pages
Steps
1, Login cpanel Backstage
2. Click on "error Pages" – Point 404– point Save OK
3, into the FTP, in the site root directory public_html, you can see the cpanel automatically generated 404.shtml files, download and edit their own, add the need to achieve the effect of the code-complete.
Second, use the. htaccess to set the 404 page.
Steps:
1, do a 404 page, named 404.shtml, uploaded to the site root directory
2,. htaccess Add the following code to it.
ErrorDocument 404 /404.shtml
Tips:
There are many kinds of error pages, the most common type description:
400 (syntax error)
401 (failed validation)
403 (Request denied)
404 (The requested page could not be found)
500 (server internal error)
. htaccess set the code reference for other error pages:
ErrorDocument 403 /errordocs/error403.html
ErrorDocument 404 /errordocs/error404.html
ErrorDocument 500 /errordocs/error500.html
cpanel Setting a custom 404 error page