Home  >  Article  >  Backend Development  >  apache开启htaccess后域名访问不生效(ip访问可以)

apache开启htaccess后域名访问不生效(ip访问可以)

WBOY
WBOYOriginal
2016-06-23 13:47:201279browse

如题。
会是什么原因造成的啊。。。


回复讨论(解决方案)

域名a1.a.com解析到外网IP地址1.1.1.1
1.1.1.1 映射到内网  10.10.10.10

.htaccess内容
ErrorDocument 404 /404.html

访问10.10.10.10/x1.html               可以生效,出现“自定义404页面内容”
访问a1.a.com/x1.html                    不生效



来者有分。找到原因了。 是被云或CDN挡住了404,擦。。。  其他规则正常有效!!!!!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn