cpanel Setting a custom 404 error page

Source: Internet
Author: User
Tags cpanel

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.