IIS 实现 HTTP 到 HTTPS 的重定向

教程:

Name:随意起

Pattern:(.*)

Conditions:新增一个条件。Input 为 {HTTPS},Pattern 为 ^OFF$

Redirect URL:https://{HTTP_HOST}/{R:1}

Redirect type:Permanent (301)

https://www.hangge.com/blog/cache/detail_1885.html

需要为 IIS 安装 Url Rewrite 插件:

https://www.iis.net/downloads/microsoft/url-rewrite