Htaccess 301使用查询字符串从url重定向

时间:2016-01-20 20:48:21

标签: wordpress .htaccess mod-rewrite seo

我正在更新网站并尝试维护SEO,所以我需要301重定向。 问题是,旧网址有查询字符串。 重写cond应该在htaccess中使用什么?新网站在wordpress上运行,因此deafult index.php规则已经在htaccess中。

旧网址:http://domain.hu/index.php?m=2&am1=1&am2=0&n=ADOTANACSADAS
新网址:http://www.domain.hu/newsite/szolgaltatasok/adotanacsadas/

旧网址:http://domain.hu/index.php?m=4&am1=0&am2=0&n=HIRLEVEL
新网址:http://www.domain.hu/hirek/
即使有人使用www

键入旧网址,规则也应该有效

0 个答案:

没有答案
相关问题