我正在使用Codeigniter中的一個不使用標準routing.php文件的項目。 它調用了這樣的函數:test.vi/index.php/controller/function。在codeigniter中刪除index.php替代路由
我的目標是從URL與htaccess的重寫刪除的index.php:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
而且也是這個config.php文件的變化:
$config['index_page'] = '';
我的問題是我需要路由所有的控制器/功能在我的route.php中,或者可以在不使用route.php文件的情況下完成?
編輯你的httpd.conf – Zalaboza