0
我在包含utm參數的嘗試和錯誤中進行了兩次嘗試,但是它始終轉發到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&name=$1&$3</to>
</rule>
<rule>
<from>^/(.*)/([0-9]+)$</from>
<to last="true" type="forward">/n/force-redirect/fitmycar-webdesign-63?id=$2&name=$1</to>
</rule>
這裏的轉發到404的網址:
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