0
這是我們的重寫規則:Urlrewriter.net匹配規則將返回到多
<rewrite url="/Product/(.+)/" to="~/ProductDetails?ProductID=$1" />
和它
www.website.com/product/34/nice-red-jacket
然後我們得到ProductID=34
工作正常,但它一旦失敗在url中有另一個正斜槓
www.website.com/product/34/nice-red-jacket/special-edition/buy-now/
ProductID=34%2fnice-red-jacket%2fspecial-edition%2fbuy-now
我們需要更改我們的重寫規則以停止第一個/下一個斜槓處的匹配,但我們該怎麼做?