1
使用IIS7.5和ASP.net URL重寫URL,我有重寫規則:文件擴展名
<rewrite url="~/store/playgame/([0-9]+)/(.*)" to="~/handlers/storeGetPlayGameContent?p1=$1&p2=$2" processing="stop"/>
這工作正常的網址:
http://127.0.0.1/store/playgame/1/c2runtime
Requested URL: http://127.0.0.1:80/handlers/storeGetPlayGameContent?p1=1&p2=c2runtime
但對於網址:
http://127.0.0.1/store/playgame/1/c2runtime.js
Requested URL: http://127.0.0.1:80/store/playgame/1/c2runtime.js
正如您所見,請求的URL現在不正確。任何文件擴展名不是.aspx
的URL都將被錯誤地重寫。