0
鑑於這種網址:重定向到另一個域名,如果模式匹配 - IIS7
http://domain1.com/pdfs/file.pdf
我如何可以重定向到domain1
使用domain2
的pdfs/*
模式?
我試圖重定向到http://domain1.com/pdfs/file.pdf
http://domain2.com/pdfs/file.pdf
我曾嘗試:
<rule name="Publications" enabled="true" stopProcessing="true">
<match url="(.*)" ignoreCase="true" />
<conditions logicalGrouping="MatchAll">
<add input="{URL}" pattern="^pdfs/$" ignoreCase="true" />
</conditions>
<action type="Redirect" url="http://domain2.com/pdfs/{R:0}" />
</rule>
感謝