CI去掉index.php
2014-06-19 12:49
148 查看
知识补充:
DOC命令重命名
ren abc.txt .htaccess
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
$config['index_page'] = "index.php"; 改为
$config['index_page'] = "";
好了
DOC命令重命名
ren abc.txt .htaccess
1. 开启apache的重写功能;
2.在站点的根目录下新建文件.htaccess
//建议将站点放在www/mysite/index.php这样的目录下:RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
3.修改config.php
$config['index_page'] = "index.php"; 改为$config['index_page'] = "";
好了
相关文章推荐
- 去掉CI URL中index.php
- 去掉 CI 框架中的 index.php
- CI框架去掉URl中的index.php部分
- PHP CodeIgniter(CI)框架中去掉 index.php方法
- 如何去掉CI (codeigniter)url中的index.php
- 去掉php框架CI默认url中的index.php
- php ci 去掉index.php
- CI去掉index.php
- CI中如何去掉index.php
- PHP CI(CodeIgniter) 如何去掉url中的index.php
- PHP CodeIgniter(CI)去掉 index.php
- 去掉CodeIgniter(CI)默认url中的index.php的步骤(完整版)
- CI去掉index.php
- 去掉php框架CI默认url中的index.php【整理】
- CI在nginx环境下去掉url中的index.php
- CI路径中如何去掉index.php
- CI 框架去掉url 中index.php的方法
- ci中的url重写,去掉index.php
- 在nginx下去掉ci框架url中的index.php