[英]RedirectMatch 301 shows a get parameter
我的問題是htacccess,我有以下幾點:
RedirectMatch 301 /tag/what\+is\+abc$ /344/what-is-abc.htm
但結果網址為:
http://www.abc.com/388/what-is-abc?q=what-is-abc
為什么我得到q參數? 我試圖不顯示$ _GET變量。
為什么使用RedirectMatch
? 據您所知,一個簡單的Redirect
就足夠了。
Redirect 301 /tag/what\+is\+abc$ /344/what-is-abc.htm
你可以試試
RedirectMatch 301 /tag/what\+is\+abc$ /344/what-is-abc.htm?
最后 '?' 覆蓋查詢字符串。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.