去掉thinkphp访问路径中的index.php
来源:互联网 发布:知之深,爱之切 编辑:程序博客网 时间:2024/04/29 23:43
REWRITE模式
REWRITE模式是在PATHINFO模式的基础上添加了重写规则的支持,可以去掉URL地址里面的入口文件index.php,但是需要额外配置WEB服务器的重写规则。
如果是Apache则需要在入口文件的同级添加.htaccess文件,内容如下:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
接下来,就可以用下面的URL地址访问了: http://localhost/home/user/login/var/value
0 0
- 去掉thinkphp访问路径中的index.php
- thinkphp去掉index.php访问后缀
- ThinkPHP去掉URL中的index.php
- thinkPHP如何去掉url中的index.php
- thinkphp去掉index.php
- thinkphp去掉index.php
- thinkphp+apache 去掉index.php
- thinkphp如何去掉index.php
- thinkphp中去掉index.php
- ThinkPHP 配置 去掉 index.php
- ThinkPHP 在nginx环境下去掉URL中的index.php
- 更改CI框架默认访问路径及去掉index.php
- ThinkPHP-URL中去掉index.php
- thinkphp 去掉URL 里面的index.php
- 去掉 URL 中的 index.php
- [PHP]去掉CodeIgniter URL中的index.php
- thinkphp在wamp 配置去掉url中index.php方法
- ThinkPHP去掉链接的index.php WAMP架构
- leetCode 190-Reverse Bits
- 重载函数sroot3次,让它返回整数、长整数、双精度数的二次方根
- opencv 读入图像代码
- 状态模式
- 第二章第十三题
- 去掉thinkphp访问路径中的index.php
- 将matlab改为黑色主题monokai的方法
- LTE中的资源块的问题
- 2.29
- 3.23
- 网站缓存分类
- 计算机网络之物理层
- opencv学习笔记(二)——播放AVI视频(下)
- 设计模式目录