title: Drupal localhost redirecting to www.localhost.com
body: <p>I am working on a drupal site which I checked out (svn) to my localhost.</p>
  
  <p>Now the problem is that when I go to:</p>
  
  <blockquote>
    <p><a href="http://www.site.com" rel="noreferrer">http://www.site.com</a></p>
  </blockquote>
  
  <p>it all works fine, but when I go to:</p>
  
  <blockquote>
    <p><a href="http://localhost/work/site" rel="noreferrer">http://localhost/work/site</a></p>
  </blockquote>
  
  <p>I get redirected to </p>
  
  <blockquote>
    <p><a href="http://www.localhost.com/work/site" rel="noreferrer">http://www.localhost.com/work/site</a></p>
  </blockquote>
  
  <p>I have ran the install.php script and all works great. It reinstalls everything but when I go to the main site the redirect occurs.</p>
  
  <p>I removed the .htaccess file, didn't do anything.</p>
  
  <p>I am using windows 7 ultimate 64 (also tried on winxp pro 32) apache 2.2, php 5.2.13</p>
  
  <p>Anyone know anyway to fix this? </p>
  
  <p>Thanks</p>