1, modify the default directory of Wampserver
After Wampserver is installed, the Web site root directory defaults to the following: installation directory \wamp\www, which is the WWW folder under the Wampserver installation directory.
Let's take the change to: D\www as an example. Open wamp\scripts\config.inc.php
Line 47th, $wwwDir = $c _installdir. ' /www '; ($c _installdir is a variable that refers to the Wampserver installation root directory. )
Modified to: $wwwDir = ' d:/www ';
2nd Step
2. Modify the Apache default root directory
Open wamp\bin\apache\apache2.2.11\conf\httpd.conf, modify the value in the double quotation mark after documentroot as you want.
For example, change DocumentRoot "c:/wamp/www/" to DocumentRoot "d:/www/"
At the same time, the <directory "e:/wamp/www/" > Changed to <directory "e:/www/" >
Root directory configuration Successful —————— >
can also be the original root directory file index.php testmysql.php Copy to the current root directory and change the inside wampmanager.conf path, you can
WAMP Environment website root directory changes