在同一個頁面有不同的請求頁面我規(guī)則怎么寫,頁面鏈接的時候怎么寫啊?(第一個規(guī)則是參數(shù)傳的是一個經(jīng)過編碼的字符串,第二個規(guī)則參數(shù)傳的是一個數(shù)字型的)
我現(xiàn)在是像下面那么寫的,可是傳到SearchRes頁面后只有kw的參數(shù)值,ts的參數(shù)值怎么區(qū)分啊
規(guī)則:
<RewriterRule>
<LookFor>~/SearchRes/(\S+)\.html</LookFor>
<SendTo>~/SearchRes.aspx?kw=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/SearchRes/(\d+})\.html</LookFor>
<SendTo>~/SearchRes.aspx?ts=$1</SendTo>
</RewriterRule>
改成這樣:
<RewriterRule>
<LookFor>~/SearchRes/(\S+)\.html</LookFor>
<SendTo>~/SearchRes.aspx?kw=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/SearchRes/ts-(\d+})\.html</LookFor>//總得還是要來點特殊的吧...
<SendTo>~/SearchRes.aspx?ts=$1</SendTo>
</RewriterRule>