1
我有文件夹主页/管理员。在这个文件夹中有index.php。 当我访问domain.com/admin/时,我的mod_rewrite规则将其重定向到我的index.php文件夹中。我想mod_rewrite跳过现有的一个或多个文件,特殊情况下为/ admin /文件夹,其中包含index.php文件。帮助与mod_rewrite
我重写规则是:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
感谢。
它不会跳过,如果我键入主机/管理员。我需要它跳过,因为我在文件夹中有index.php。 – taras 2009-05-26 13:55:05