#loadmodule rewrite_module modules/mod_rewrite
allowoverride none 改成了all
重启apache后提示404错误!
我在网站根目录下建立的.htaccess 规则:
rewriteengine on
rewriterule ^/index.html$ /index.php
如果我把这条规则放入到conf/httpd.conf文件下是可以正常访问的,不知道为什么写在htaccess下就找不到文件呢?
回复讨论(解决方案) 要放在
中
