Properly 301 redirect an URL with parameters to a different site

Posted by m1755 on Stack Overflow See other posts from Stack Overflow or by m1755
Published on 2010-04-29T14:35:57Z Indexed on 2010/04/29 17:47 UTC
Read the original article Hit count: 243

Right now I have an outdated URL that is getting 404'd:

http://mysite.com/category/?tag=blue-example

It needs to be redirected to:

http://subdomain.mysite.com/blue/

This doesn't work:

Redirect 301 /category/?tag=blue-example http://subdomain.mysite.com/blue/

How do I properly rewrite this URL?

© Stack Overflow or respective owner

Related posts about apache

Related posts about mod-rewrite