Redirect 'myapp.com' to 'www.myapp.com' in rails without using htaccess?
- by Allan L.
Using Morph Labs' Appspace to deploy a site means no automated way to redirect 'myapp.com' to 'www.myapp.com' (and no access to .htacess).
Is there an in-rails way to do this? Would I need a plugin like subdomain-fu?
More specifically, I'm trying to do something like:
'myapp.com' = 'www.myapp.com'
'myapp.com/session/new' = 'www.myapp.com/session/new'
Basically, I always want the 'www' subdomain prepended on every request (because the SSL cert specifically has a common name of 'www.myapp.com').