I have running in some weird error in wamp server. I cannot access my local site using localhost url like localhost/mysite but virtual host can work.
After do checking on Virtual host examined by apache using the Wamp server tools, i found out that the default server is not localhost.
To fix this, i add the folowing code on httpd-vhosts.conf on top of other existing virtual host:
<VirtualHost localhost:80>
ServerName localhost
DocumentRoot c:/wamp64/www
<Directory "c:/wamp64/www/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
After that, restart wamp and then the localhost finally working again.