Iis 7 如何使用IIS7重写器和问号重写url

Iis 7 如何使用IIS7重写器和问号重写url,iis-7,url-rewriting,Iis 7,Url Rewriting,我有这样一个url: mydomain/page?参数1=1 我想把它改写成: mydomain/page2?参数1=1 <rule name="MyRule" stopProcessing="true"> <match url="page?(.*)" /> <action type="Redirect" url="page2?{R:1}" /> </rule> 或 这不匹配,我不明白为什么?标记查询字符串的开头,该字符串

我有这样一个url:

mydomain/page?参数1=1

我想把它改写成:

mydomain/page2?参数1=1

<rule name="MyRule" stopProcessing="true">
      <match url="page?(.*)" />
      <action type="Redirect" url="page2?{R:1}" />
</rule>

这不匹配,我不明白为什么?标记查询字符串的开头,该字符串不是路径的一部分

所以如果我跟着,重写者甚至看不到?任何超越它的东西

<rule name="MyRule" stopProcessing="true">
      <match url="page\?(.*)" />
      <action type="Redirect" url="page2?{R:1}" />
</rule>