2011-10-04 82 views
2

我有一個codeigniter項目light裏面的文件夾projects,它看起來像這樣site.com/projects/light。由於某些原因,標準.htaccess將不會將所有呼叫路由到index.php。需要更改或添加什麼?Codeigniter內目錄htaccess

RewriteEngine on 
RewriteCond $1 !^(index\.php|assets|robots\.txt) 
RewriteRule ^(.*)$ /index.php/$1 [L] 
+0

可能的重複[如何修改.htaccess,使其指向codeigniter中的子文件夾](http://stackoverflow.com/questions/1484306/how-to-modify-htaccess-so-that-it點分文件夾在codeigniter) – ThomasReggi

回答

2

它看起來像RewriteRule被重定向到的index.php,而不是/projects/light/index.php。

+0

謝謝你剛纔抓住它之前,你的迴應感謝雖然 – ThomasReggi