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

WBOY
Release: 2016-06-23 13:47:20
Original
1293 people have browsed it

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


回复讨论(解决方案)

域名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,擦。。。  其他规则正常有效!!!!!

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template