2013-01-09 107 views
0

我正在使用htaccess從網址中刪除我的index.php文件。我有一個RewriteCond設置爲忽略某些文件和文件夾。我的問題是,我需要忽略一個名爲「test」的目錄,但是當前寫入的條件也會忽略以字母測試開頭的任何內容,所以我的「證明」目錄也會被忽略。有沒有辦法讓我的RewriteCond更具體,所以它會忽略「測試」而不是「推薦」?.htaccess RewriteCond特異性

這裏是我現有的代碼:

# Removes index.php 
RewriteCond $1 !^(admin|assets|test|index\.php|info\.php|robots\.txt) [NC] 
RewriteRule ^(.*)$ index.php?/$1 [L] 

回答

0

的RewriteCond $ 1→(管理|資產| \ /測試\/| index.php文件| info.php的|的robots.txt)[NC]