I have subdomains like: lks.harabiz.com
& lkm.harabiz.com
, each with its own database tables.
When somebody tries the URL: www.lkm.harabiz.com
, the database tables being used are different from lkm
's, and those database tables actually belong to www
, not to lkm
.
There are two solutions to this problem:
- Point
www.lkm.harabiz.com
to simplylkm.harabiz.com
. - Make
www.lkm.harabiz.com
use the database tables that actually belong tolkm
, and not towww
.
I'm using Rails 5.0.0.1, and the app is deployed through Heroku.
I have looked the DNS stuff, plus stuff on application level, but I'm unable to achieve the desired results.