ddxiami

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 2175|回复: 0

[文章] IIS7配置thinkphp伪静态

[复制链接]
发表于 2017-5-15 15:20:15 | 显示全部楼层 |阅读模式

下载https://www.iis.net/downloads/microsoft/url-rewrite

增加web.config文件
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
<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>
    </system.webServer>
</configuration>
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|技术文档库 ( 闽ICP备15017263号-2 )|网站地图

GMT+8, 2025-5-19 00:54 , Processed in 0.035321 second(s), 17 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表