.htaccess 重定向替换 &与搜索签名 [英] .htaccess redirect replacing & sign with the search
本文介绍了.htaccess 重定向替换 &与搜索签名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
RedirectMatch 301 /out/link http://www.link.com/?getparam1=something&getparam2=somethingelse&getparam3=more
当您点击 mysite.com/out/link 时,它会转到:
When you click on mysite.com/out/link it goes to:
http://www.link.com/?getparam1=something/out/linkgetparam2=somethingelse/out/linkgetparam3=more
基本上它取代了 &使用/out/link 部分为 http 'get' 参数签名
Basically its replacing the & sign, for the http 'get' params, with the /out/link part
推荐答案
可能尝试使用 B 标志
Possibly try with the B flag
在应用转换之前转义非字母数字字符.
Escape non-alphanumeric characters before applying the transformation.
所以你会有RedirectMatch 301/out/link http://www.link.com/?getparam1=something&getparam2=somethingelse&getparam3=more [B]
So you would have RedirectMatch 301 /out/link http://www.link.com/?getparam1=something&getparam2=somethingelse&getparam3=more [B]
这篇关于.htaccess 重定向替换 &与搜索签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文