我有个问题。在IIS上,我得到了一个带有两个端口80和443(https)的网站。我想将用户的所有http请求重定向到https。我还添加了Rewrite rule to https,但当我进入浏览器http://localhost/site时,它会显示相同的页面。我需要将用户重定向到httpS://localhost/site。
也许这是因为我的本地配置?
我在IIS上禁用了Require SSL。
The rule is:
<rewrite>
<rules>
<rule name="HTTPS Redirect">