【问题标题】:IIS Rewrite Rule for path路径的 IIS 重写规则
【发布时间】:2015-08-26 18:24:15
【问题描述】:

我们需要使用 IIS 重写模块重定向下面的 URL。

http://www.old.com.au/kids to http://www.new.com.au/somepath/kids 

有人可以帮帮我吗?

【问题讨论】:

    标签: url-rewriting iis-7 url-rewrite-module


    【解决方案1】:

    为绑定到 www.old.com.au 的站点在 web config 的规则节点中添加这个

    <rule name="Redirect kids to new site" >
        <match url="^kids$"/>   <!-- only redirect kids and not something/kids or kids/something -->
        <action type="Redirect" url="http://www.new.com.au/somepath/kids" />
    </rule>
    

    【讨论】:

      猜你喜欢
      • 2020-09-30
      • 2014-06-27
      • 2020-02-17
      • 1970-01-01
      • 2015-08-17
      • 1970-01-01
      • 1970-01-01
      • 2023-04-09
      • 2018-02-12
      相关资源
      最近更新 更多