3 回答

TA貢獻(xiàn)1943條經(jīng)驗(yàn) 獲得超7個(gè)贊
使用a 307應(yīng)該正是您想要的
307 Temporary Redirect (since HTTP/1.1)
In this case, the request should be repeated with another URI; however, future requests
should still use the original URI.[2] In contrast to how 302 was historically implemented,
the request method is not allowed to be changed when reissuing the original request. For
instance, a POST request should be repeated using another POST request

TA貢獻(xiàn)1712條經(jīng)驗(yàn) 獲得超3個(gè)贊
使用301重定向進(jìn)行一般URL重寫(xiě)不是走的路。這是一個(gè)性能問(wèn)題(尤其是對(duì)于移動(dòng)設(shè)備,但通常也是這樣),因?yàn)樗鼤?huì)使您的頁(yè)面請(qǐng)求數(shù)量翻倍。
考慮使用諸如Tuckey URLrewriteFilter或apache之類(lèi)的URL重寫(xiě)工具mod_rewrite。
雷說(shuō)的都是真的,這只是對(duì)您的一般方法的另一條評(píng)論。
- 3 回答
- 0 關(guān)注
- 614 瀏覽
添加回答
舉報(bào)