title: php site_url and base_url not working on live server
body: <p>In codeigniter from view I tried to load a controller function as image src. Like this:</p>
  
  <pre><code>&lt;img src="&lt;?php echo site_url('/g1/g2/g3')."?mydata1=".urlencode(serialize($data1)); ?&gt;" /&gt;
  </code></pre>
  
  <p>It is working perfectly on my local pc. But on my live server it is not working. I could not figure out whats the problem? Here to mention that the live server is working on https: and in codeigniter </p>
  
  <pre><code>$autoload['helper'] = array('url', 'html', 'string'); 
  </code></pre>
  
  <p>is on</p>