我是 Codeigniter 的新手,我在 codeigniter 2.1.3 的根文件夹中放了一个 .htaccess。我已经在 xampp 和 wamp 服务器上尝试了我的 .htaccess 文件,但这并没有删除我的 index.php。我也设置了
$config['index_page'] = 'index.php';
到
$config['index_page'] = '';
这是我的 .htaccess 代码
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond $1 !^(index\.php|js|images|system\/plugins|robots\.txt|css\/)
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
我不知道为什么这不会从 url 中删除我的 index.php 页面。帮我!!