Redirect app to 2 URLs


I was wondering how to redirect my app to two different URLs,
i am using apache over mongrel and running under production env.
i have 2 domains located say and

when i hit my app should redirect to ‘account/login’
and when i hit www.domain2 my app should redirect to ‘/home/home’ and
runs with single server and single app only

I was finding URLs in my app by using ‘’ method.

any help !!


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