5
私は、私がSSL証明書を持っている紺碧のウェブサイトを保管しています。 www.mywebsite.comをhttps://www.mywebsite.comにリダイレクトしようとしていますが、成功しません。ウェブサイトをhttpからhttpsにリダイレクト
<system.webServer>
<rewrite>
<rules>
<rule name="Redirect to HTTPS">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
<add input="{URL}" pattern="/$" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
</conditions>
<action type="Redirect" url="https://{SERVER_NAME}/{R:1}" redirectType="SeeOther" />
</rule>
</rules>
</rewrite>
をしかし、私は私のURLを入力するときには、httpsにリダイレクトされません。
私は私のプロジェクトが展開されているIISの設定を変更する必要があり、次のコードを使用しています。
ところで、書き換えはIntellisenseによって未登録と表示されます。
関連を - あなたはそれを読むことを確認してください:http://stackoverflow.com/questions/4365294/is-redirecting-http-to-https-a-bad -アイディア –