CI 3.0 隐藏index.php
来源:互联网 发布:安卓6.0优化教程 编辑:程序博客网 时间:2024/05/18 00:01
修改apache httpd.conf文件
这行去掉注释#LoadModule rewrite_module modules/mod_rewrite.so第一步:修改<Directory /> AllowOverride none Require all denied</Directory>为<Directory /> AllowOverride all Require all denied</Directory>
第二步:
在CI根目录添加.htaccess文件RewriteEngine onRewriteCond $1 !^(index\.php|style|robots\.txt)RewriteRule ^(.*)$ /i1894/index.php/$1 [L]当然如果你的目录不是根目录,则要注意,比如我的URL为http://localhost/ci,则最后一行要改为RewriteRule ^(.*)$ /ci/index.php/$1 [L]
最后一步:
修改config.php文件
将$config['index_page'] = "index.php"; 修改为 $config['index_page'] = ""
重启apache服务器,大功告成。
0 0
- CI 3.0 隐藏index.php
- ci 隐藏index.php
- ci的index.php隐藏
- CI如何隐藏index.php
- ci框架&tp框架隐藏index.php
- CI框架 .htaccess 隐藏url中index.php的解决
- 隐藏CI框架路径中的index.php方法
- CI框架学习之--隐藏入口文件-index.php
- CI框架 .htaccess 隐藏url在index.php解决方案
- CI去掉index.php
- CI去掉index.php
- ci去除index.php
- CI去掉index.php
- CI去掉index.php
- 去除ci index.php
- php ci 去掉index.php
- CI框架去除index.php
- CI框架 .htaccess 隐藏url中index.php的解决(转)
- Butter Knife Field and method binding for Android views
- Leetcode-标签为Tree 112. Path Sum
- vue专题
- vue-router路径计算问题
- Codevs 1183 泥泞的道路
- CI 3.0 隐藏index.php
- Gym
- vue-cli入门(三)——人员管理实例
- 机器学习基础——梯度下降
- 修改Unity的脚本模板
- HBuilder和Eclipse的SVN的服务地址改变后,如何设置图示。
- 容器 What, Why, How
- MyEclipse设置代码提示功能
- 深度学习笔记之win7下TensorFlow的安装