I have a website on localhost, mapped in HOSTS as:
127.0.0.1 www.yorkshiretestingwebsite.com 127.0.0.1 yorkshiretestingwebsite.com
However, the folder (C:/www/vhosts/yorkshiretestingwebsite.com) has some sub-folders in it, namely:
and rather than typing in
I would like to try and have the URL as:
I've had a look for how to do this on Google, but am not quite sure how to do this.
I tried the advice here - Automatic subdomain creation in htaccess on Apache - and it did work (good if I only have a few folders) but what if I have multiple ones? I don't want to keep adding them to it, so I've been trying to find a solution.
What's the best way to achieve this?