分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 运营维护

thinkphp5 IIS7.5 隐藏index.php的方法

发布时间:2023-09-06 02:00责任编辑:沈小雨关键词:thinkphp
<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里,保存

然后就可以用了

原文链接https://blog.csdn.net/ylwsn21/article/details/76619666

thinkphp5 IIS7.5 隐藏index.php的方法

原文地址:https://www.cnblogs.com/supe/p/9185855.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved