After apache enables htaccess, domain name access does not take effect (ip access is acceptable)

Source: Internet
Author: User
After apache enables htaccess, domain name access does not take effect (ip access is allowed.
What is the cause...


Reply to discussion (solution)

Domain name a1.a.com resolved to Internet IP address 1.1.1.1
1.1.1.1 ING to intranet 10.10.10.10

. Htaccess content
ErrorDocument 404/404 .html

The access to 10.10.10.10/x1.html takes effect. the "Custom 404 page content" page appears"
Access to a1.a.com/x1.html does not take effect



The recipient has a score. The cause is found. Is blocked by cloud or CDN 404, wipe... Other rules are valid !!!!!

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.