简体   繁体   中英

RedirectMatch 301 shows a get parameter

My problem is htacccess , I have the following:

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

but resulting url is:

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

Why am I getting the q parameter? I am trying to not display $_GET variables.

Why are you using RedirectMatch ? As far as I can tell from your question a simple Redirect would suffice.

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

You can try

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

The last '?' overrides the querystring.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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