我想將我的網站上的特定URL轉發到另一個網站,我無法弄清楚如何在web.config文件中設置適當的值我的IIS服務器。在Windows Server 2012的IIS配置文件中的URL轉發IIS 8.5
比如我想轉發 www.example.com/ballot 到 ballot.example.com
到目前爲止,我已經試過以下,但它沒有任何影響到url
<rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^/ballot$" ignoreCase="false" />
<conditions>
<add input="{HTTP_HOST}" pattern="^example\.com$" />
</conditions>
<action type="Redirect" redirectType="Permanent" url="http://ballot.example.com/" />
</rule>
</rules>
</rewrite>
我在Rackspace Cloud站點上託管網站。
有人嗎?我真的可以在這個上使用一些幫助。我正在尋找解決方案,但我沒有嘗試。我認爲這將與在apache服務器上使用.htaccess文件設置重定向一樣簡單。 – ReBoot 2014-09-12 18:34:52