我试图重定向从;htaccess从多个网址重定向到单个并删除查询字符串
http://www.example.com/news/newsitem.asp?story=20130227
http://www.example.com/news/newsitem.asp?story=20148893
还有其他的网址,我不知道,所以希望一切从新闻重定向/ newsitem.asp 到
http://www.example.com/blog
我使用
RewriteRule ^news/newsitem.asp http://www.example.com/blog [R=301,L]
但结果将查询字符串添加到末尾
结果= http://www.example.com/blog?story=20130227
如何阻止查询字符串被追加?
我发现这个职位,但似乎无法使它工作 redirect a single URL to another - removing the query string