htaccess 重定向删除查询字符串
我当前正在使用此 301 重定向:
redirect 301 /oldurl http://www.domain.com/newurl
问题是我得到了
http://www.domain.com/newurl?/oldurl
What Syntax would I use with a RewriteRule
instead for every url so I don't get the query string on the end?
I am using this 301 redirect currently:
redirect 301 /oldurl http://www.domain.com/newurl
the problem is I get
http://www.domain.com/newurl?/oldurl
What syntax would i use with a RewriteRule
instead for each url so I don't get the query string on the end?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可以提供有关旧 url 和新 url 值的更多详细信息,但鉴于提供的信息:
Could do with some more details on the values for old and new url, but given the information provided: