How to redirect a URL with GET variables in routes.rb without Rails stripping out the variable first?
- by Michael Hopkins
I am building a website in Rails to replace an existing website. In routes.rb I am trying to redirect some of the old URLs to their new equivalents (some of the URL slugs are changing so a dynamic solution is not possible.)
My routes.rb looks like this:
match "/index.php?page=contact-us" => redirect("/contact-us")
match…