跳到主要内容
帮助中心

新闻公告

产品更新、运营公告与行业观察
一手消息,第一时间同步给你

香港空间web.config 伪静态排除特顶面目录

红色为一条伪静态规则中排除特定目录的核心代码


<rule name="redirect" enabled="true" stopProcessing="true"> 

<match url="(.+).html$" ignoreCase="true" /> 

<conditions>

<add input="{QUERY_STRING}" pattern="^$" ignoreCase="false" /> 

<add input="{REQUEST_URI}" pattern="^/(upload|static|images)" ignoreCase="true" negate="true" /> 

</conditions> 

<action type="Redirect" redirectType="Permanent" url="/index.php?s={R:1}" /> 

</rule>

本文链接
返回本栏目
工单