关于litespeed问题的重写规则

时间:2011-01-23 02:07:22

标签: .htaccess mod-rewrite litespeed

当我访问 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]

由于

1 个答案:

答案 0 :(得分:0)

好的,我明白了。

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d