0
當請求進入www.example.com/default.aspx時,我希望它301到www.example.com。怎麼做?使用IIS7從Default.aspx重定向到root
PS - 我嘗試了很多規則,但似乎沒有任何工作。謝謝。
當請求進入www.example.com/default.aspx時,我希望它301到www.example.com。怎麼做?使用IIS7從Default.aspx重定向到root
PS - 我嘗試了很多規則,但似乎沒有任何工作。謝謝。
您是否嘗試過使用URL重寫具有以下規則:
<rule name="Default Document" stopProcessing="true">
<match url="(.*)default.aspx" />
<action type="Redirect" url="{R:1}" redirectType="Permanent" />
</rule>
感謝。奇蹟般有效。 – niaher 2010-06-22 15:42:04