1, purchase SSL certificate, reference: http://www.cnblogs.com/yipu/p/3722135.html
2, Iis7/iis 7.5 under the binding HTTPS website (purchase wildcard SSL generic domain name certificate can bind multiple subdomains) reference above
3. Download install URL rewrite module: Microsoft URL Rewrite module
32-bit: Http://download.microsoft.com/download/4/9/C/49CD28DB-4AA6-4A51-9437-AA001221F606/rewrite_x86_zh-CN.msi
64-bit: Http://download.microsoft.com/download/4/E/7/4E7ECE9A-DF55-4F90-A354-B497072BDE0A/rewrite_x64_zh-CN.msi
4. Uncheck "SSL Settings"-"Require SSL"
5, ASP. NET station can directly modify the Web. config (same as "6, IIS Configuration Diagram" effect), for example: see <rewrite>...</rewrite> node
<?xml version= "1.0" encoding= "Utf-8"?><configuration> <system.webServer> <rewrite > <rules> <rule name= "HTTP to HTTPS redirect" stopprocessing= "true" > <match url= "(. *)" /> <conditions> <add input= "{HTTPS}" pattern= "Off" ignorecase= "true"/> </conditions > <action type= "Redirect" redirecttype= "Found" Url= "https://{http_host}/{r:1}"/> </rule> </rules> </rewrite> </system.webServer></configuration>
6, IIS configuration diagram (graphical operation process, the same as the previous step effect, applicable to Asp/php station)
Select the site you want to configure, such as:, find "url rewrite", see the 3rd step above
Go to "url Rewrite" module and click "Add Rule"
Select "Blank Rule"
Name: HTTP to HTTPS redirect
Mode: (. *)
Conditional input: {HTTP}
Mode: Off or ^off$
Or
REDIRECT Url:https://{http_host}/{r:1}
Redirection type: Found (302) or see other (303)
Or
When the configuration is complete, apply to the current site:
URL Rewrite configuration results:
This configuration is complete!
Reference website:
Http://www.iis-aid.com/articles/how_to_guides/redirect_http_to_https_iis_7
http://www.jppinto.com/2010/03/automatically-redirect-http-requests-to-https-on-iis7-using-url-rewrite-2-0/
http://webactivedirectory.com/iis-microsoft/redirect-http-to-https-on-microsoft-iis-7-and-7-5/
http://blog.csdn.net/xuhuojun/article/details/6137154
Tags: IIS
iis7/iis7.5 URL rewrite HTTP redirect to HTTPS