到目前为止我已经尝试了多种组合但没有运气。我有一个如下所示的网址。
https://teams.company.com/Search/pages/results.aspx?url=https://teams2017.company.com/sites/hrdepartment
我想创建一个规则来更改查询字符串值团队2017 to teams只是,像下面这样。
https://teams.company.com/Search/pages/results.aspx?url=https://teams.company.com/sites/hrdepartment
我正在使用安装了 IIS 重写规则的 IIS 8.5。
你的规则应该是这样的:
<rule name="teams2017 to teams" stopProcessing="true">
<match url="^Search/pages/results.aspx$" />
<conditions>
<add input="{QUERY_STRING}" pattern="(.*)teams2017(\.company\.com.*)" />
</conditions>
<action type="Redirect" url="{R:0}?{C:1}teams{C:2}" appendQueryString="false" />
</rule>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)