0
這裏是我的web.config的相關位:IIS 8.5重定向非WWW到www不靈
<rule name="Force WWW and SSL" enabled="true" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAny">
<add input="{HTTP_HOST}" pattern="^[^www]" />
<add input="{HTTPS}" pattern="off" />
</conditions>
<action type="Redirect" url="https://www.zzz.com/{R:1}" appendQueryString="true" redirectType="Permanent" />
</rule>
將重寫HTTP到HTTPS,但需要通過我的CMS將不會添加WWW。我已經嘗試了幾種變體,並且似乎Win2012R2上的IIS 8.5拒絕遵循www規則。有任何想法嗎?