2012-07-19 47 views
0

特定的网页我使用了一个规则来重定向页面,https.The以下是web.config中的规则:如何运行HTTPS

<rules> 

     <rule name="HTTPs Redirect" stopProcessing="true"> 
     <match url="(.*)" /> 
     <conditions> 
      <add input="{ALL_HTTP}" matchType="Pattern" 
       pattern="HTTP_X_FORWARDED_PROTO:https" ignoreCase="true" negate="true" />    
     </conditions> 
     <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" /> 
     </rule> 
    </rewrite> 

此规则重定向所有页面https,但我想重定向我的应用程序的一些页面,如果我有两个页面test.aspx和test1.aspx,那么我想重定向test.aspx到https和test1.aspx到http。 怎么可能。

感谢

回答