我爲使用Intelligencia.UrlRewriter.dll的URL ReWritting導航URL規則Intelligencia.UrlRewriter.dll
我在web配置下面寫一行代碼。
<rewrite url="~/Reservation/" to="~/Division.aspx?DIV=5& />
<rewrite url="~/Tours/ " to="~/Division.aspx?DIV=10/>
這裏我的導航步驟如下:1.從 Default.aspx的我會點擊URL保留 違約,ASPX預訂 相應的代碼在web.config中預訂的
<重寫URL = 「〜/ Reservation /」to =「〜/ Division.aspx?DIV = 5 & amp>
---------這是工作正常,當我點擊鏈接保留在Defaul.aspx它將重定向到Division.aspx,並在瀏覽器中寫爲 http://localhost/Test/Reservation/。
2.當我點擊鏈接Tours時,它應該重定向到http://localhost/Test/tours/。 In tours.aspx < a id =「hlnav2_0」href =「tours /」>圖爾 但它顯示http://localhost/Test/Reservation/tours。
如何編寫規則以獲得所需的輸出。