Localhost not in path to projects in WampServer
When you install wampserver on a pc and you browse to localhost, when you try and click on one of your project websites WampServer takes out “localhost” from the path, so you can’t reach the site. Annoying, you can still just open a browser and type http://localhost/projectname
But much better to just make it work as intended.
Directions:
Open up Windoes\wamp64\www\index.php
Change this line(33):
//On récupére la valeur de urlAddLocalhost
$suppress_localhost = ($wampConf[‘urlAddLocalhost’] == ‘off’ ? true : false);
to this:
//On récupére la valeur de urlAddLocalhost
$suppress_localhost = ($wampConf[‘urlAddLocalhost’] == ‘on’ ? true : false);
Save the file
Go to the wampserver icon and restart all services. This will take care of the issue.
Ben Vivante