title: Set Dynamic Base Url in CodeIgniter
body: <p>I need to set dynamic base url in codeigniter due to few following reasons.</p>
  
  <ul>
  <li>localhost for development and reset when it goes live</li>
  <li>single application accessible from multiple domains</li>
  <li>ip address may change due to dhcp (locally)</li>
  </ul>