I have a classified clojure web app I want to host on Heroku. The domain is registered at Godaddy.
What would be the most effective and efficient way to have multiple subdomains:
- newyork.classapp.com
- montreal.classapp.com
- paris.classapp.com
- ...
Users, all logic, should be shared across subdomains, so I'd love to have only one code base.
It would be easy to redirect subdomains to first level folder like this:
paris.classapp.com
-> classapp.com/paris/
But I want users to keep seeing the subdomain while browsing the site, like this:
paris.classapp.com/cars/blue-car-to-sell
As opposed to this:classapp.com/paris/cars/blue-car-to-sell
What should I do?