<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="OrgPage" stopProcessing="true">
<match url="(?!/static)(.*)$" ignoreCase="false" /> <!-- 伪静态规则排除目录,一般为图片或静态素材。 -->
<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>
thinkphp6 IIS伪静态规则设置
转载
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
在 CSS 中调整大小——WEB开发系列22
调整元素的大小是一个重要的技能,CSS 提供了多种方法来控制和调整元素的尺寸,以适应不同的设计需求和屏幕尺寸。
css 前端 web css3 html -
整理 IIS7配置web.config
会持续添加一些内容。。。。web.config<?xml version="1.0" encoding="UTF-8"?><conf
web.config 301 IIS7 404 html -
web.config的配置
xml version="1.0"?> Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your application. Use the Website->Asp.Net Configuration opt
authorization compilation authentication redirect forms