URL重写出站规则失败

我有两个出站规则,它们在比赛前附加了ICSearch。以下作品-

<rule name="RewriteString"  preCondition="ResponseIsHtml1">
<match filterByTags="None" pattern="/Backflow/index\?handler=" ignoreCase="true" />
<action type="Rewrite" value="ICSearch{R:0}" />
</rule>
<rule name="RewriteString2"  preCondition="ResponseIsHtml1">
<match filterByTags="None" pattern="/Plumbing/index\?handler=" ignoreCase="true" />
<action type="Rewrite" value="ICSearch{R:0}" />
</rule>

我想使其更通用,并创建一个与目录无关的正则表达式。

我尝试过

<rule name="RewriteString2"  preCondition="ResponseIsHtml1">
<match filterByTags="None" pattern="(*.)\?handler=" ignoreCase="true" />
<action type="Rewrite" value="ICSearch{R:0}" />
</rule>

,但不会重写值。关于我在做什么错的任何想法吗? 谢谢

xiaoxucheng09 回答:URL重写出站规则失败

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3048808.html

大家都在问