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重寫模塊和其他人使用通配符。對此有何想法?如何在IIS中將多箇舊應用程序重定向到較新版本的應用程序?

回答

0

創建規則改寫或重定向(type="Rewrite"type="Redirect")請求:

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