1、打开wamp/scripts/config.inc.php ,修改$wwwDir = $c_installDir.’/www’;
2、打开wamp/bin/apache/apache2.4.9/conf/httpd.conf,修改DocumentRoot "d:/wamp/www/"
3、同一文件下修改<Directory "d:/wamp/www/">
重启后即可