CI框架3.x 之隐藏index.php
1、配置.htaccess
<IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L] </IfModule>
2、将.htaccess文件上传到项目根目录
3、修改application/config.php中的如下参数
$config['index_page'] = ""//设置为空