【问题标题】:How to redirect multiple older application to newer version application in IIS?如何将多个旧应用程序重定向到 IIS 中的新版本应用程序?
【发布时间】:2012-02-28 07:34:45
【问题描述】:
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 重写模块和其他使用通配符的模块。对此有什么想法吗?

【问题讨论】:

    标签: iis-7 url-rewriting web-config url-routing custom-error-handling


    【解决方案1】:

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

    <rule name="GoToNewVersion" stopProcessing="true">
        <match url="demos/[23]\../" ignoreCase="true" />
        <action type="Rewrite" url="/demos/4.0/" />
    </rule>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-08-07
      • 2019-07-15
      • 1970-01-01
      • 1970-01-01
      • 2020-08-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多