【发布时间】:2016-11-01 14:01:14
【问题描述】:
我正在设置查询字符串重定向:
expo.com/en/general/campaigns/on-second-thought.html?slide=ost-2016-tank 到
expo.com/en/general/campaigns/on-second-thought/ost-2016-tank.html
RewriteCond %{HTTP_HOST} ^(.*)expo\.com
RewriteCond %{QUERY_STRING} slide=ost-2016-tank
RewriteRule ^/en/general/campaigns/on-second-thought.html?$ http://www.expo.com/en/general/campaigns/on-second-thought/ost-2016-tank.html [R=301,L,NC]
重定向发生,但其附加 ?slide=ost-2016-tank 如下所示
http://www.expo.com/en/general/campaigns/on-second-thought/ost-2016-tank.html?slide=ost-2016-tank
slide=ost-2016-tank参数被添加到重定向页面
【问题讨论】:
标签: apache mod-rewrite query-string url-redirection