Drupal localhost redirecting to www.localhost.com

Posted by AntonioCS on Stack Overflow See other posts from Stack Overflow or by AntonioCS
Published on 2010-05-12T20:52:13Z Indexed on 2010/05/12 20:54 UTC
Read the original article Hit count: 586

Filed under:
|
|

Hey!

I am working on a drupal site which I checked out (svn) to my localhost.

Now the problem is that when I go to:

http://www.site.com

it all works fine, but when I go to:

http://localhost/work/site

I get redirected to

http://www.localhost.com/work/site

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.

I removed the .htaccess file, didn't do anything.

I am using windows 7 ultimate 64 (also tried on winxp pro 32) apache 2.2, php 5.2.13

Anyone know anyway to fix this?

Thanks

© Stack Overflow or respective owner

Related posts about drupal

Related posts about php