Using Thin web server configuration in development , how to have eq. Apache RedirectMatch permanent

In production, using Apache I can use RedirectMatch permanent to force
wo subdomain to use www.

<VirtualHost :80>
RedirectMatch permanent ^/(.

How can I get the same behavior when using Thin in dev mode ?
need to change all… urls into… if
don’t want to touch the routes ?

thanks for feedback

[SOLVED] but using Rails3 routes, maybe there is a better way ?

host =

constraints(:host => host ) do
root :to => redirect(“http://www.#{host}”)
match ‘/*path’, :to => redirect {|params|

Le jeudi 15 novembre 2012 11:03:40 UTC+1, Erwin a crit :

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs