我正在使用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