0
My IIS server has multiple application in single website. Here am planned to turn off(remove) the older application from IIS and redirect to newer version. 

For example:

www.mydomain.com/demos/2.0/ (older version)
www.mydomain.com/demos/3.0/ (older version)
www.mydomain.com/demos/3.5/ (older version)
www.mydomain.com/demos/4.0/ (newer version)

我已经使用通配符检查了这个 url 重写模块和其他模块。对此有任何想法吗?

4

1 回答 1

0

创建规则以重写或重定向(type="Rewrite"type="Redirect")请求:

<rule name="GoToNewVersion" stopProcessing="true">
    <match url="demos/[23]\../" ignoreCase="true" />
    <action type="Rewrite" url="/demos/4.0/" />
</rule>
于 2012-02-27T23:34:45.360 回答