[solved]getting redirected to www.localhost.com

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Sosi
Forum Newbie
Posts: 9
Joined: Thu May 07, 2009 5:13 pm

[solved]getting redirected to www.localhost.com

Post by Sosi »

Hi!

Whenever I try to run ANY php script, I get redirected from http://localhost/script.php to http://www.localhost.com/script.php

Can someone please help me? This is really urgent.

thanks a lot

solved: installed XAMP
Last edited by Sosi on Sun May 10, 2009 2:47 pm, edited 1 time in total.
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: getting redirected to www.localhost.com (urgent help needed)

Post by califdon »

Do you have a properly configured web server on your local computer? Is there an .htaccess file in the document root directory?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: [solved]getting redirected to www.localhost.com

Post by John Cartwright »

Yea.. sounds like the browser your using is attempting to "predict" what you meant to type in, because the original request failed.
Sosi
Forum Newbie
Posts: 9
Joined: Thu May 07, 2009 5:13 pm

Re: [solved]getting redirected to www.localhost.com

Post by Sosi »

I dont know what happened. I went to the "about:config" thingy in firefox and disabled that "auto predict" capibility of the browser, but still didnt run the scripts...

Now I installed XAMP and everything is solved :D
Post Reply