hello, I need url domain.com/en/forum/?a=1&a=2&lang=ru to be rewrited to domain.com/ru/forum/?a=1&a=2 I ended up with if ($args ~* "lang=(en|lt|ru|de)(.*)") { rewrite "^/.{2}(.*)$" /$arg_lang/$1? redirect; } but the GET variable "lang" is causing infinite loop - how to unset the "lang" in nginx? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.