RedirectMatch 301显示了一个get参数


RedirectMatch 301 shows a get parameter

我的问题是htaccess,我有以下内容:

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

但是结果url是:

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?

最后一个'?