隐藏CI框架路径中的index.php方法
来源:互联网 发布:golang 调用c dll 编辑:程序博客网 时间:2024/06/08 05:56
在CI框架根目录中增加一个htaccess文件,文件内容如下:
<IfModule mod_rewrite.c>
RewriteEngine on
Options +FollowSymLinks
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
allow from all
=========================
然后在路由配置中,配置好自己的访问方法即可了。
0 0
- 隐藏CI框架路径中的index.php方法
- ci框架&tp框架隐藏index.php
- ci 隐藏index.php
- 去掉 CI 框架中的 index.php
- CI框架 .htaccess 隐藏url中index.php的解决
- CI框架学习之--隐藏入口文件-index.php
- CI框架 .htaccess 隐藏url在index.php解决方案
- ci的index.php隐藏
- CI如何隐藏index.php
- CI 3.0 隐藏index.php
- ci 框架 index.php以及 js css 路径问题
- 更改CI框架默认访问路径及去掉index.php
- 去掉php框架CI默认url中的index.php
- 去掉php框架CI默认url中的index.php
- PHP CodeIgniter(CI)框架中去掉 index.php方法
- CI框架去除index.php
- 有效删除CI框架中URL中的index.php
- CI框架去掉URl中的index.php部分
- 安装rebar时提示"Uncaught error in rebar_core"
- 阅读《编写高质量代码》心得(3)
- solr学习第九课程----Zookeeper的安装
- Understanding the PS_TOKEN Cookie
- ubuntu 安装 tomcat7
- 隐藏CI框架路径中的index.php方法
- Leetcode_165_Compare Version Numbers
- 身不由己,从我做起——PM2.5检测仪
- SIFI尺度不变特征变换算法
- crontab里php使用相对路径的方法
- OC类和对象-对象和指针
- js操作表格-添加与删除
- ZOJ 1711 Sum It Up
- HBase 0.94.26 分布式安装