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'] = ""//设置为空
标签:index,CI,php,REQUEST,FILENAME,RewriteCond,config 来源: https://www.cnblogs.com/yang-2018/p/15903072.html