wamp3.06版本的80端口的配置
1 找到 C:\wamp64\bin\apache\apache2.4.23\conf\extra 目录
打开 httpd-vhosts.conf 文件复制下面的代码
2 进入:C:\wamp64\bin\apache\apache2.4.23\conf 目录
打开:httpd.conf
找到 httpd-vhosts.conf 那一行 吧前边的分好去掉 保存
3 进入 C:\Windows\System32\drivers\etc 目录
:打开 HOSTS文件 写入 虚拟域名 127.0.0.1 www.XXXXX.com
DocumentRoot "c:/wamp64/www/icity_shop/web"
ServerName www.icity_shop.com
ServerAlias www.icity_shop.com
ErrorLog "logs/dummy-host.icity_shop.com-error.log"
CustomLog "logs/dummy-host.icity_shop.com-access.log" combined
<Directory "c:/wamp64/www/icity_shop/web">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
</Directory>