![](/img/trans.png)
[英]IIS URL Rewrite Domain change 301 redirect individually only some pages and all other pages to another URL
[英]IIS 10 Rewrite 301
我真的需要幫助,
我不知道如何在 IIS 10 Windows Server 2016 上進行 301 重定向。
我需要重定向
從
https://hostname/ folder1/folder2/folder3/folder4 /xxxxx_1.jpg
到
https://hostname/ folder6/folder7/folder8/folder9/folder10 /xxxxx_1.jpg
您可以為此使用 IIS 重寫模塊
<rule name="RewriteFolder" stopProcessing="true">
<match url="^folder1/folder2/folder3/folder4/(.*)" ignoreCase="true"/>
<action type="Redirect" url="/folder6/folder7/folder8/folder9/folder10/{R:1}"/>
</rule>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.