Could you recommend how to achieve this on Sub Domain Routing. My Project is a CRM,ERP with my websites all linked directly into it as if they was separate portals eg: shareholders.domain.tld is an area for shareholders, mdb.domain.tld is the actual admin system, www.domain.tld would be the corporate site mostly static, domain2.com would be one of my brands sites, domain3.com another of my brands etc.

Each brand site would be static logged out then logged in would be primarily a social and billing aspect.