我正在使用下面的重定向規則,以去除URL中的尾部斜線。尾部斜杠被洗掉了,但重定向發生在HTTP URL而不是HTTPS URL。你能幫助更新下面的重定向規則,以便重定向到HTTPS URL嗎?
<rule name="Remove trailing slash"/span> stopProcessing="true"/span>>
<匹配url="(.*)/$" />
<條件>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
</conditions>
<action type="重定向" redirectType="永久" url="{R:1}" />
</rule>
uj5u.com熱心網友回復:
<action type="重定向" redirectType="永久" url="https://{SERVER_NAME}/{R:1}" />
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/333685.html
標籤:
