2
我已经在.htaccess文件中设置了301重定向的数量,但我遇到了使重定向不匹配的查询字符串的问题。301重定向:匹配查询字符串,不要将它附加到新的重定向
例子:
Redirect 301 /about/history/?lang=fr http://www.newdomain.com/fr/history
Redirect 301 /about/history/ http://www.newdomain.com/nl/history
所以olddomain.com/about/history/?lang=fr
现在匹配第二个规则和重定向到http://www.newdomain.com/nl/history?lang=fr
。
我希望它从字面上采用?lang=fr
,而不是将querystring附加到新的重定向。
我该怎么做?
谢谢!我最终使用了PHP重定向,而在这种情况下效果更好。 – Joan 2013-04-23 18:51:04