title: how to set sub-domain base url in CI?
body: <p>In CI, currently I have base_url() as 'xxx.com'.Now as per requirements,every enterprise is treated as sub-domain with its own menu, content completely different from main site.Now for sub-domain, I want to set base_url() as 'enterprise.xxx.com'.</p>
  
  <p>How am I supposed to do this dynamically.The sub-domain can be viewed via main site.</p>