The best way is to programmatically check with location.host or location.hostname .
But ember usually works with magic by faking URLs and not reloading the page ... I don't know how to switch subdomains without reloading the page.
I would redirect the subdomain to the URL in your main application and let Ember handle the routing from there.
source share