我試圖得到一個基本的URL重寫我的Azure的web應用程序Azure的Web應用程序的URL重寫不工作
工作<system.webServer>
<rewrite>
<rules>
<rule name="SalesCloudGmail" stopProcessing="true">
<match url="/SalesCloudGmail.aspx" />
<action type="Redirect" url="/SalesCloudGmail" />
</rule>
</rules>
</rewrite>
</system.webServer>
期待打開URL .../SalesCloudGmail.aspx看看。地址欄中的../SalesCloudGmail ???
我缺少什麼
感謝 - 重寫了URL ...現在它找不到資源(錯誤=您正在查找的資源已被刪除,名稱已更改或暫時不可用。)我一定誤解了這個功能 - 認爲它仍然會顯示帶有修改過的地址url的頁面? – PNC
如果您只想重寫URL而不是「重定向」,則需要將操作類型更改爲「重寫」 – Henry