2010-03-24 425 views
0

我無法搞清楚如何從這個重寫規則阿帕奇重寫排除

RewriteCond %{REQUEST_URI} !firerift.php 
RewriteRule ^(.*)$ firerift.php/$1 [L,QSA,NC] 

任何幫助,將不勝感激排除/公/箱。

回答

1

只需要添加另外RewriteCond

RewriteCond %{REQUEST_URI} !firerift.php 
RewriteCond %{REQUEST_URI} !^/public/bin 
RewriteRule ^(.*)$ firerift.php/$1 [L,QSA,NC] 
+0

感謝克里斯!正是我在找什麼! – dtufano

+0

我終於找到了一個很好的書面參考.htaccess http://perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/ – dtufano