I'd like to send http://app.client-domain.com/
to my Heroku-hosted Rails app at http://www.my-domain.com/
.
From research it looks like this would be relatively straightforward (with domain record redirects/forwards like A, MX, CName, etc.)
However, I don't want http://app.client-domain.com/
to just forward the browser to http://www.my-domain.com
... I want it to appear that the user is still on http://app.client-domain.com
.
For example, a request to:
http://app.other-domain.com/user/4
would be serving data from:
http://www.my-domain.com/user/4
... but the URL would remain:
http://app.other-domain.com/user/4
Likewise, if a user is sent (via the app) to a new address within the app (like /products/4
), the scheme above would be maintained. It would truly look like the app lived at
http://app.other-domain.com/
Is this possible?