2016-12-14 110 views
0

如果URL在'search-product-list /'之後有問號,我需要檢查URL重寫。我在使用曲克。下面是當前規則:檢查網址是否有'/?' thru tuckey urlrewrite

<rule> 
      <from>^/n/search-product-list/(.*)$</from> 
      <to last="true" type="permanent-redirect">/ttsvr/search-product-list/$1</to> 
    </rule> 

    <rule> 
      <from>^/search-product-list/(.*)$</from> 
      <to last="true" type="forward">/n/force-redirect/fitmycar-webdesign-73?query=$1</to> 
    </rule> 

回答

0

我能得到的結果,我希望通過這樣做:

 <rule> 
       <from>^/search-product-list/(.*)?q(.*)$</from> 
       <to last="true" type="forward">/n/force-redirect/fitmycar-webdesign-73?query=$1</to> 
     </rule>