I want to force my URL to start with www.
when it's not present.
I tried the match
method, but it seems to ignore the start of the URL, it seems to do something called Route Globbing, that appearently just works with route segments http://guides.rubyonrails.org/routing.html#route-globbing-and-wildcard-segments
How do I make my application in RoR always start with www. ? -> www.foo.com must remain as it is -> foo.com must be redirected to www.foo.com