Redircting to a url that has a ? in it

Posted by dkmojo on Server Fault See other posts from Server Fault or by dkmojo
Published on 2012-10-25T22:11:49Z Indexed on 2012/10/25 23:03 UTC
Read the original article Hit count: 179

Filed under:
|

I have a somewhat strange problem. A client has moved their site to Wordpress - cool no problem. They use a service for link exchanges that has a Wordpress plugin. The issue is that the new Links pages use a query string to display the correct content and I cannot figure out how to redirect the old URLs correctly.

Old URLs look like this: domain.com/link/category-name.html

The plugin makes them look like this in WP: domain.com/links/?page=category-name.html

How in the world can I get the redirect to work properly?

Here's what I have tried:

Redirect 301 /link/actors.html http://www.artisticimages.biz/links/?page=actors.html
Redirect 301 /link/actors.html http://www.artisticimages.biz/links/%3Fpage=actors.html
Redirect 301 /link/actors.html http://www.artisticimages.biz/links/\?page=actors.html

But none of those have worked. Any help is greatly appreciated!

© Server Fault or respective owner

Related posts about apache2

Related posts about redirect