title: CodeIgniter base_url(), link in localhost gives me to live server
body: <p>I am working on web page in CodeIgniter in my localhost but this webpage is also in live server.</p>
  
  <p>It uses <code>base_url()</code> for all links.</p>
  
  <p>For example:</p>
  
  <pre><code>&lt;link rel="stylesheet" href="&lt;?= base_url() ?&gt;assets/style.css"&gt;
  &lt;script src="&lt;?= base_url() ?&gt;assets/jquery-ui.min.js"&gt;&lt;/script&gt;
  ...
  &lt;a href="&lt;?= base_url() ?&gt;show/edit/other"&gt;
  </code></pre>
  
  <p>When I click on link in localhost it gives mi live server address, so I can't do anything in localhost.</p>
  
  <p>Can somebody help me please?</p>