私は問題があります。で私は2IIS
つのポート80
と443(https)
。http
ユーザーからのすべてのリクエストをにリダイレクトしたいhttps
。も追加しましRewrite rule to https
たが、ブラウザに入るhttp://localhost/site
と同じページが表示されます。ユーザーをにリダイレクトする必要がありますhttpS://localhost/site
。
たぶんこれは私のローカル構成のせいですか?
そして、私はを無効Require SSL
にしIIS
ます。
The rule is:
<rewrite>
<rules>
<rule name="HTTPS Redirect">
<match url="(.*)" ignoreCase="false" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="false" />
</conditions>
<action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}{REQUEST_URI}" />
</rule>
</rules>
</rewrite>
ありがとうございました。