URL 重写 - IIS 上的 Sitecore
URL rewrite - Sitecore on IIS
我有一个基于 IIS 8.5 的 Sitecore 应用程序 运行。我想 redirect/rewrite 从 #1 到 #2 URL.
我尝试在 IIS-URL 重写级别上做,但它不起作用,什么也没有发生。
<rule name="redirect_a1_to_a2" enabled="false" stopProcessing="true">
<match url="a/a1/" />
<conditions>
<add input="{PATH_INFO}" pattern="a/a1(/?)" />
</conditions>
<action type="Redirect" url="http://mywebsite.com/a/a2" />
</rule>
请帮忙。
您的规则是正确的。然后您唯一需要做的就是启用规则。
只需更改:
enabled="false"
至
enabled="true"
我有一个基于 IIS 8.5 的 Sitecore 应用程序 运行。我想 redirect/rewrite 从 #1 到 #2 URL.
我尝试在 IIS-URL 重写级别上做,但它不起作用,什么也没有发生。
<rule name="redirect_a1_to_a2" enabled="false" stopProcessing="true">
<match url="a/a1/" />
<conditions>
<add input="{PATH_INFO}" pattern="a/a1(/?)" />
</conditions>
<action type="Redirect" url="http://mywebsite.com/a/a2" />
</rule>
请帮忙。
您的规则是正确的。然后您唯一需要做的就是启用规则。
只需更改:
enabled="false"
至
enabled="true"