如何忽略mod_rewrite中的目录 - 尝试^ min - [L,NC]

时间:2013-04-06 18:18:50

标签: apache mod-rewrite

我正试图让文件夹min内的任何内容都无法获得我的重写规则。

# Dispatcher wiring

#Add to stop the rules applying to the minify rules
RewriteRule ^min - [L,NC]

RewriteCond %{REQUEST_URI} !dispatch\.php$
RewriteCond /var/www/sexdiaries.co.uk/docroot%{REQUEST_FILENAME} !-f
RewriteRule ^(/.*)$ /dispatch.php?url=$1 [L,QSA]
RewriteRule ^x\.!dispatch\.php([^b]+)!dispatch\.php$ !dispatch\.php [L,NE]

文件夹min位于文件夹的根目录,因此:/var/www/sexdiaries.co.uk/min

1 个答案:

答案 0 :(得分:0)

会建议:

    <Directory /min>
         RewriteEngine Off
    </Directory>

......或类似的东西