0

当我访问http://domain.com/example时,我的规则运行良好。查询看起来不错等。

当我访问http://domain.com时 index.php 没有加载,似乎完成了一个空白重定向,http ://domain.com/city.php?q=

我怎样才能让 index.php 加载而不是 Rewrite 开始......

Options +FollowSymLinks
RewriteCond %{REQUEST_URI} !\.(css|jpg|gif|png|jar|js|html|htm|php)$
RewriteEngine On
RewriteRule ^([^/]*)$ /city.php?q=$1 [L]

谢谢

4

1 回答 1

0

好,我知道了。

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d 
于 2011-01-23T03:47:50.557 回答