-1
Я хочу перенаправить https://www.example.com в https://example.com в webconfig. Для этой операции я использую следующий код. но не работает.asp.net webconfig https://www.example.com https://example.com
<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>
Я попробовал ваш код, но не работал – GreenHill