路径的IIS重写规则
问题描述:
我们需要使用IIS重写模块重定向以下URL。路径的IIS重写规则
http://www.old.com.au/kids to http://www.new.com.au/somepath/kids
有人能帮我吗?
答
规则节点内的web配置添加这对于这势必www.old.com.au网站
<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>