簡體   English   中英

使用IIS Rewrite將www子域重定向到具有相同路徑的主域

[英]Redirect www sub-domain to main domain with the same path using IIS Rewrite

我正在使用來自此問題的IIS重寫規則: https : //stackoverflow.com/a/39552321/8388835

但是重定向在包含頁面時不起作用,例如:www.example.com/somepage應該重定向到https://example.com/somepage ,它僅適用於根路徑(www.example.com-> https://example.com )。 如何使其與任何指定頁面一起使用? 任何幫助將不勝感激。

我能夠解決此問題。 我在以下問題中找到了答案: http至https重定向-iis8.5 url重寫2.0重定向規則不起作用

問題是因為我還有另一個IIS重寫規則,我更改了它的順序,並且現在一切正常。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM