Use modrewrite to redirect a url with querystring
Posted
by Alex
on Stack Overflow
See other posts from Stack Overflow
or by Alex
Published on 2010-04-14T19:31:06Z
Indexed on
2010/04/14
19:33 UTC
Read the original article
Hit count: 362
mod-rewrite
|querystring
I am trying to redirect an old URL that uses a query string to the new url that does not..
/tripinfo.cfm?RiverNameID=1&AdventureID=6
Now needs to go to
/trips/big-ass-river/overnight.html
So I am trying..
RewriteRule ^tripinfo.cfm?RiverNameID=1&AdventureID=6$ /trips/big-ass-river/overnight.html [R=301]
But this is not working. .
I can redirect the main page no problem using
RewriteRule ^tripinfo.cfm$ /trips.html [R=301]
If any one could tell me what Im missing that would be great.
© Stack Overflow or respective owner