聯(lián)系官方銷售客服
1835022288
028-61286886
麻煩請問一下:我需要把這個路徑 https://mj.jxmzsxy.com/xuetang/843.html?ivk_sa=1024320u
301跳轉(zhuǎn)到下面這個路徑應(yīng)該怎么寫呢
https://mj.jxmzsxy.com/xuetang/843.html
網(wǎng)站訪問日志里面有很多類似于這種的404,我想把類似于這樣的路徑,做301處理,sa=1024320u,每一個鏈接后面這個值是不一樣的
我在寶塔上設(shè)置了301但是不生效
回復(fù)@天天向上 那我應(yīng)該怎么把類似于這樣的鏈接都跳轉(zhuǎn)到對應(yīng)的路徑呢
回復(fù)@小白白
就是這個東西不一樣
使用自定義函數(shù)作為URL規(guī)則
回復(fù)@小白白 試試這個
"xuetang\/([0-9]+)\.html\?(.+)" => 'index.php?s=api&c=rewrite&m=url&url=/xuetang/$1.html',
"xuetang\/([0-9]+)\.html\?(.+)" => "index.php?s=api&c=rewrite&m=url&url=/xuetang/$1.html",
回復(fù)@LandQ

跳轉(zhuǎn)鏈接少id
回復(fù)@LandQ
"xuetang\/([0-9]+)\.html\?(.+)" => "index.php?s=api&c=rewrite&m=url&url=/xuetang/$1.html&p1=$1",這樣才對
并不需要寫,系統(tǒng)默認(rèn)就是會跳轉(zhuǎn)的,除非你關(guān)閉了系統(tǒng)301