0
web.configを使用して、自分のasp.netサイトのすべてのリクエストをwww以外のものであるhttps://にリダイレクトしたいと考えています。つまり:httpをhttpsとwwwにリダイレクトする方法は、web.configを介してwww以外のものにリダイレクトする方法ですか?
<system.webServer>
...
<rewrite>
<rules>
<clear />
<rule name="Redirect to https" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
上記のスニペットは、これら2つの方向を変えるの面倒を見る:
http://
http://www
https://www
すべて
https://
に行くべきこれまでのところ、私は私のweb.configファイルのためにこれを持っています
http://
http://www
しかし、最後には:
https://www ---> https://
これを行う方法は?