When we use wamp to build a local website, we often encounter that the page style cannot be loaded normally. This is because the css path is not loaded correctly. Then we use wamp to set the local access path to a.com pointing to a local virtual space. How to operate? ? Let's follow ytkah to set it up
Open D:\wamp64\bin\apache\apache2.4.27\conf\extra\httpd-vhosts.conf. The local Apache path should be determined according to your specific installation path.
<VirtualHost *:80> ServerName www.a.com DocumentRoot "${INSTALL_DIR}/www/ytkah/" <Directory "${INSTALL_DIR}/www/ytkah/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory> </VirtualHost>
Add the above configuration code, ytkah is the site directory, restart Apache, and refresh the site to see if the page is displayed normally?