Step 1
======
In the file: C:\wamp\bin\apache\Apache2.2.11\conf\extra\httpd-vhosts.conf
Find: NameVirtualHost *:80 Replace with: NameVirtualHost *
In the file: C:\wamp\bin\apache\Apache2.2.11\conf\httpd . conf
Find: #Include conf/extra/httpd-vhosts.conf and delete the #
Step 2
======
Location: C:\Windows\System32\drivers\etc\hosts
For Each Website you will need to insert the following: 127.0.0.1 www.domain.dev
127.0.0.1 represents the IP for your localhost.
Step 3
======
Location: C:\wamp\bin\apache\Apache2.2.11\conf\extra\httpd-vhosts.conf
For Each Website add the following:
<VirtualHost *>
ServerName www.domain.dev
DocumentRoot "C:/wamp/www/domain.com/"
</VirtualHost>
Remove those 2 dummy virtual hosts and add:
<VirtualHost *:80>
ServerName localhost
DocumentRoot C:/wamp/www/
</VirtualHost>
Also add this if you want others on the network to access your local machine:
<VirtualHost *:80>
ServerName 192.168.1.??
DocumentRoot C:/wamp/www/
</VirtualHost>
# BEGIN WordPress
RewriteEngine on
#
# Unless you have set a different RewriteBase preceding this
# point, you may delete or comment-out the following
# RewriteBase directive:
RewriteBase /
#
# if this request is for "/" or has already been rewritten to WP
RewriteCond $1 ^(index\.php)?$ [OR]
# or if request is for image, css, or js file
RewriteCond $1 \.(gif|jpg|css|js|ico)$ [NC,OR]
# or if URL resolves to existing file
RewriteCond %{REQUEST_FILENAME} -f [OR]
# or if URL resolves to existing directory
RewriteCond %{REQUEST_FILENAME} -d
# then skip the rewrite to WP
RewriteRule ^(.*)$ - [S=1]
# else rewrite the request to WP
RewriteRule . /index.php [L]
#
# END wordpress