title: Codeigniter basepath issue on xampp
body: <p>I've been working in a local dev environment for some time now with Codeigniter v1.7.1, and I recently installed xampp to replace it. Before, I had modified my hosts file and added a the virtualhost in my httpd.conf file, and my website was running at dev.mysite.com.</p>
  
  <p>After installing xampp, the html is displaying when I go to the url localhost/mysite, however, none of the paths are working correctly, because they are formatted relative to the site root, which apparently is not being set correctly.</p>
  
  <p>For instance:
  <code>&lt;script type="text/javascript" src="/public_scripts/homepage.js"&gt;&lt;/script&gt;</code><br>
  is pointing toward the URL localhost/public_scripts rather than localhost/mysite/public_scripts.</p>
  
  <p>I went into config.php and changed the base_url to a number of different things, such as mysite/, but nothing worked.</p>
  
  <p>What can I do to get CI to use localhost/mysite as the root, so that relative paths formatted like /public_scripts/script.js use mysite as the base url and not localhost?</p>
  
  <p>Thanks!</p>