• RewriteEngine On
  • RewriteCond %{REQUEST_URI} !^/$
  • RewriteCond %{REQUEST_URI} !^/robots.txt$
  • RewriteCond %{REQUEST_URI} !^/favicon.ico$
  • RewriteRule ^ index1.php 复制代码

其中的
RewriteCond %{REQUEST_URI} !^/$
为啥不生效。一开始不知怎么的。能用。。后来改蒙了.第二条莫名其妙的不生效了。第三第四条都正常。

我是想要直接访问域名的(xxx.com)。跳转到默认的主页(index.html)。。

其他的请求全部交给index1.php处理