Use modrewrite to redirect a url with querystring
- by Alex
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.