2017-02-16 4 views
0

私はtuckey url書き換えのために私のURLにutm paramsを含めて試行錯誤しましたが、常に404ページに転送します。はurl書き換え条件にutmパラメータを含んでいます

これはURLの書き換えに私の現在の状態です。

<rule> 
     <from>^/n/(.*)/([0-9]+)$</from> 
     <to last="true" type="permanent-redirect">/ttsvr/$1/$2</to> 
    </rule> 
    <rule> 
     <from>^/(.*)/([0-9]+)\?(gclid=.*)$</from> 
     <to last="true" type="forward">/n/force-redirect/fitmycar-webdesign-63?id=$2&amp;name=$1&amp;$3</to> 
    </rule> 

    <rule> 
     <from>^/(.*)/([0-9]+)$</from> 
     <to last="true" type="forward">/n/force-redirect/fitmycar-webdesign-63?id=$2&amp;name=$1</to> 
    </rule> 

は、ここでは404に転送したURLです:

http://local.xxxxx.com/au/mazda-mazda-3-sedan-2009-2013-boot-mat/5012?utm_source=reengagement-campaign&utm_campaign=email1&utm_medium=email&utm_content=button1 

私は何を期待私は、このページに行くとき、私はリダイレクトされますされますこのURLにアクセスするとどのようにリダイレクトされたのと同じように、商品ページに移動します:

http://local.xxxxx.com/au/mazda-mazda-3-sedan-2009-2013-boot-mat/5012 

答えて

0

rを条件にutm paramsを追加して設定します。

<rule> 
     <from>^/(.*)/([0-9]+)\?(gclid=.*|utm.*)$</from> 
     <to last="true" type="forward">/n/force-redirect/fitmycar-webdesign-63?id=$2&amp;name=$1&amp;$3</to> 
    </rule> 
関連する問題