[英]IIS rewritten rule to redirect a url
我有一個 SSL 網站,我想將所有調用重定向到不同的 SSL 網站,包括 POST 數據。 經過幾次嘗試,都沒有成功。 任何建議這是我到目前為止所擁有的。
<rule name="Redirect url" enabled="true" stopProcessing="true">
<match url="(.*)" ignoreCase="true" />
<action type="Redirect" url="https://localhost" appendQueryString="false" redirectType="Permanent" />
</rule>
如果您還需要在目標URL末尾的append請求URI,請像這樣修改規則。
<rule name="Redirect url" enabled="true" stopProcessing="true">
<match url="(.*)" ignoreCase="true" />
<action type="Redirect" url="https://localhost/{R:1}" appendQueryString="false" redirectType="Permanent" />
</rule>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.