我使用IIS7的HTTP Redirect功能将http://example.com请求重定向到http://www.example.com,但是该功能不能与https协议以这种方式一起使用。
HTTP Redirect
https
有可能用它IHttpHandler来做到这一点吗?
IHttpHandler
如果使用IIS7,则可能要尝试使用URL重写模块。
http://www.4guysfromrolla.com/articles/072810-1.aspx
http://www.jppinto.com/2010/03/automatically-redirect-http-requests-to-https-on-iis7-using-url-rewrite-2-0/
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
点击生成二维码
我来说两句