I think this should be fairly easy but I\'m not familiar with how it\'s done...
How do you write a before filter that would check if the current request is for certa
A simple choice to redirect from subdomain to subdomain would be the following
redirect_to subdomain: 'www', :controller => 'www', :action => "index"
This would be called on a domain name for example foo.apple.com would then go to www.apple.com