我試圖從我的CI網址中刪除index.php,但按照說明它似乎沒有工作。使用htaccess刪除子目錄中的codeigniter index.php
我有一個codeigniter安裝在子目錄中運行。在route config中有一個默認控制器,名爲main,另一個控制器叫做'create'。默認運行正常,但去/創建返回一個324錯誤,說沒有收到數據。我的htaccess看起來像這樣:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
你的apache error.log的輸出將有助於解決你的問題。 – Marko