Preparatory work:
Download URL rewrite and install: http://www.microsoft.com/zh-cn/download/details.aspx?id=7435
Website bindings 443 and 80;
Add <system.webServe> in the Web. config file <rewrite> <rules> <rule Name= "Http to https" stopprocessing= "true" > <match url= "(. *)" /> <conditions> <add input= "{HTTPS}" pattern= " Off " /> </conditions> <action type= "Redirect" url= "https://{http_host}/{r:1}" Redirecttype= "temporary" /> </rule> </rules> </rewrite></system.webServer>
4. Set URL rewriting and apply
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/70/7F/wKiom1W4m2-CkK8EAAHnh1Wj1f0230.jpg "style=" float: none; "title=" New Inbound rule "alt=" wkiom1w4m2-ckk8eaahnh1wj1f0230.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/70/7C/wKioL1W4nV6j0JagAAIWE3KYQ-k834.jpg "style=" float: none; "title=" set match URL; add condition "alt=" wkiol1w4nv6j0jagaaiwe3kyq-k834.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/70/7F/wKiom1W4m2-RbzNAAAEXdD5JC8U479.jpg "style=" float: none; "title=" set operation, redirect "alt=" Wkiom1w4m2-rbznaaaexdd5jc8u479.jpg "/>
5. Restart the IIS service and test.
Note: Work needs, refer to the online blog, handwriting This document, later do learning to use.
This article is from the "Z Record" blog, so be sure to keep this source http://i991019.blog.51cto.com/4174025/1679727
HTTP to HTTPS