1. Open wamp/www/index.php in Change
$suppress_localhost = ($wampConf[‘urlAddLocalhost’] == ‘off’ ? true : false);
To
$suppress_localhost = ($wampConf[‘urlAddLocalhost’] == ‘on’ ? true : false);
OR
2. From Wamp
-
Right click on wamp icon on tray on the right.
-
Go to “wamp settings”
-
Enable “Add localhost in URL”