HTTP to HTTPS

Source: Internet
Author: User

Preparatory work:

  1. Download URL rewrite and install: http://www.microsoft.com/zh-cn/download/details.aspx?id=7435

  2. Website bindings 443 and 80;

  3. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.