2017-10-11 62 views

回答

1

RedirectMatch指令不会删除查询字符串。使用mod_rewrite基于规则的,因为这一个:

RewriteEngine On 

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

尾随?剥去在目标网址的任何现有的查询字符串。

+0

@Caro:这是否工作? – anubhava