|
IIS 8
我想把index.php?id=数字 301到new.php?id=数字,用下面的规则为什么不行呢,错哪了,求指点。
已解决,问题出在问号上,utf-8编码转义
<rule name="301" stopProcessing="true">
<match url="^new.php$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{QUERY_STRING}" pattern="^id=([0-9]+)$" />
</conditions>
<action type="Redirect" url="/new1.php?id={C:1}l" appendQueryString="false" redirectType="Permanent" />
</rule> |
|