繁体   English   中英

RedirectMatch 301显示了一个get参数

[英]RedirectMatch 301 shows a get parameter

我的问题是htacccess,我有以下几点:

RedirectMatch 301 /tag/what\+is\+abc$ /344/what-is-abc.htm

但结果网址为:

http://www.abc.com/388/what-is-abc?q=what-is-abc

为什么我得到q参数? 我试图不显示$ _GET变量。

为什么使用RedirectMatch 据您所知,一个简单的Redirect就足够了。

Redirect 301 /tag/what\+is\+abc$ /344/what-is-abc.htm

你可以试试

RedirectMatch 301 /tag/what\+is\+abc$ /344/what-is-abc.htm?

最后 '?' 覆盖查询字符串。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM