title: I want to run my codeigniter project on localhost, without defining 'base_url' in config
body: <p>I downloaded a codeigniter folder from its official website. Setup it in wamp.
  I remove index.php by making setting in .htaccess file.</p>
  
  <p>'I left blank base url in config.'</p>
  
  <p>Now, when i click on link to go to another controller, instead of showing <code>http://localhost/projectname/cntrlname</code> url is <code>http://127.0.0.1/projectname/cntrlname</code>.</p>
  
  <p>I dont want to set base url. so, what should i do to make it work properly.</p>