2017-10-11 60 views

回答

1

RedirectMatch指令不會刪除查詢字符串。使用mod_rewrite基於規則的,因爲這一個:

RewriteEngine On 

RewriteRule ^/?product_info\.php$ https://ex.com/pagex.htm? [L,NC,R=301] 

尾隨?剝去在目標網址的任何現有的查詢字符串。

+0

@Caro:這是否工作? – anubhava