I have a live Rails app. Now I would like to reroute all of them to a subdomain dev.mydomain.com.
For example, current path mydomain.com/users/1
should become dev.mydomain.com/users/1
. All the links in my pages should work also.
How should I do this?
Thanks a lot.
Edit: the reason I want to do this is because I want to hide my app from visitors, and redirect them to a different landing page.