Rewriting URLs from https:// to http:// in IIS7

前端 未结 4 819
孤独总比滥情好
孤独总比滥情好 2020-12-04 14:51

I\'m trying to rewrite urls from the form:

https://example.com/about

to the form

http://example.com/about

4条回答
  •  星月不相逢
    2020-12-04 15:08

    This post is a little old, but I wanted to answer. I am using ASP.Net MVC3, and Fabio's answer above didn't work for me. The easiest solution I came up with to handle the https redirect to http, while still allowing valid https pages to request secure content was just to add Whitelist rules above my https/http redirects:

        
          
          
          
        
        
          
          
            
          
          
        
        
          
          
            
          
          
        
    

提交回复
热议问题