whatsns问答系统 IIS8.5 伪静态规则

博主:jhchinajhchina 2020-11-29 474 0条评论
摘要: 找遍全网没找着,问了官方也没人知道,无意当中试了下,竞然成功了。<rules> <rule name="OrgPage_rewrite" st...

找遍全网没找着,问了官方也没人知道,无意当中试了下,竞然成功了。whatsns问答系统 IIS8.5 伪静态规则


<rules>

<rule name="OrgPage_rewrite" 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>