2016-01-11 281 views
0

我在IIS7中有一個aspx網站,在根目錄下有一個虛擬文件夾(稱爲'app'),這是另一個aspx應用程序。IIS 7 Url用虛擬目錄重寫

我想www.main.com/section顯示內容從www.other.com/page。 然而,www.main.com/section/app,我想忽略以前的重定向(它會虛擬文件夾內容)。

我不能得到這個工作。這是我有:

<rule name="Landing page" enabled="true"> 
    <match url="landing" /> 
    <action type="Rewrite" url="http://www.other.com/page" /> 
</rule> 

這可能嗎?

+0

我認爲你必須爲你的重寫規則添加條件。 – Kami

+0

此引用可能有助於https://www.iis.net/learn/extensions/url-rewrite-module/url-rewrite-module-configuration-reference#Rule_action具體爲'AbortRequest'' '類型。 –

回答