WAMP: Missing http://localhost/ in urls , wrong wamp projects links

mlclm picture mlclm · Jun 25, 2014 · Viewed 44.5k times · Source

I have a problem with Wamp which never happened to me before, cannot find what's wrong. I have a few projects located in my www folder ( running windows 7 ).

My hostfile has the line 127.0.0.1 localhost uncommented

When I go to http://localhost/ or http://127.0.0.1/ and click on a project name like "mysite" from the main Wamp panel page, the link just points to "mysite" and not "http://localhost/mysite"

Therefore I can't see any sites, what should I do ?

Answer

Olasunkanmi picture Olasunkanmi · Dec 7, 2014

After thorough research, I found out the solution which worked for me as well..

open wamp/www/index.php.

Change this line:

$suppress_localhost = true;

To :

$suppress_localhost = false;