Forum: Rails deployment Redirect app to 2 URLs

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Srinath A. (Guest)
on 2008-11-20 17:25

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 topic is locked and can not be replied to.