thinkphp5 IIS7.5 隐藏index.php的方法
来源:互联网 发布:小黑屋写作软件安卓版 编辑:程序博客网 时间:2024/06/04 20:13
TP5文档有写如果配置,但并不是很详细,今天配置正好遇到这个问题了,自己就记录一下
<rewrite> <rules> <rule name="OrgPage" stopProcessing="true"> <match url="^(.*)$" /> <conditions logicalGrouping="MatchAll"> <add input="{HTTP_HOST}" pattern="^(.*)$" /> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> </conditions> <action type="Rewrite" url="index.php/{R:1}" /> </rule> </rules> </rewrite>
下面这步是最重要的一步,之前直接放在web.config里不管用。。。
配置前必须安装微软的URL Rewrite模块 网址是https://www.iis.net/downloads/microsoft/url-rewrite#additionalDownloads
下载后再把上面配置内容的放到web.config里,保存
然后就可以用了
阅读全文
0 0
- thinkphp5 IIS7.5 隐藏index.php的方法
- thinkphp5 隐藏index.php方法
- ThinkPHP5 如何隐藏接口里面的index.php
- thinkphp5.0隐藏index.php入口文件
- 关于ThinkPHP5.0在Apache下隐藏index.php报错的问题
- thinkphp5在SAE上部署隐藏index.php
- thinkphp5 去掉url里的index.php
- Windows 2008Server R2 IIS7 服务器中隐藏index.php的配置
- Thinkphp 隐藏 index.php 方法
- 隐藏CodeIgniter程序URL中index.php的方法
- 在SAE上真正隐藏index.php的方法
- 阿里云虚拟主机 隐藏index.php的方法
- Yii隐藏URL中index.php的方法
- ci的index.php隐藏
- 隐藏index.php的规则
- thinkphp5.0路径中去除index.php的方式
- Nginx服务器下ThinkPHP5访问出现404以及URL隐藏index.php
- thinkPHP5隐藏入口文件index.php后 读取不到资源问题
- springboot【10】数据访问之多数据源配置使用
- 总结:Android 5.1 添加硬件抽象层(HAL)和JNI接口总结
- 如何使用mysql导入txt数据附上mysql命令版
- C++标准模板库简介
- C语言中可变参数函数实现原理
- thinkphp5 IIS7.5 隐藏index.php的方法
- poj2299 (离散化+树状数组)或(归并排序)
- iOS开发 GCD的延时执行
- 给你一个承诺,玩转angularjs的Promise
- 并查集 之最经典带权问题 食物链NOI
- 下雨了怎么办
- 香蕉派 BPI-M2 Zero 四核开源单板计算机 , 全尺寸兼容raspberry pi Zero W
- 华为手机无法输出 i v log问题
- CSS清除浮动_清除float浮动