web.configにURL書き換えルールを追加する方法を検討し始めました。
私は2つのルールを使用しました:
1)* .mydomain.comからwww.mydomain.comへの正規URLおよび2)HttpからHttps。
<rules>
<rule name="Redirect to www" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^mydomain.com$" />
</conditions>
<action type="Redirect" url="http://www.mydomain.com/{R:0}" redirectType="Permanent" />
</rule>
<rule name="Redirect HTTP to HTTPS" stopProcessing="true">
<match url=".*"/>
<conditions>
<add input="{HTTPS}" pattern="^OFF$"/>
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther"/>
</rule>
</rules>
私はこの段階に到達するために例に従いましたが、誰かが私のためにこれをチェックしてくれると感じていただければ幸いです。
ありがとう