cliveportman/code

Set up Virtual Host using WAMP

Within the system tray click on the WAMP icon > Apache > httpd-vhosts.conf and add the following to the bottom of the file:

<VirtualHost *:80>
 ServerName website.dev
 DocumentRoot C:/Users/clive/Desktop/repos/website/public_html
 <Directory  "C:/Users/clive/Desktop/repos/website/public_html/">
 Options +Indexes +Includes +FollowSymLinks +MultiViews
 AllowOverride All
 Require local
 </Directory>
</VirtualHost>

Restart Apache.

Now update your hosts file to include the line:

127.0.0.1 website.dev

If using Craft CMS you might need to update the following files to make sure everything is routed correctly:

craft/config/general.php
craft/config/db.php
public_html/.htaccess