I have created a CMS which uses the URL as the directory name - like this:
VirtualDocumentRoot /var/www/html/%0
So, www.somesite.com
is served from: /var/www/html/www.somesite.com
This works, but, I also need a sandbox URL because often the site URL will not be available at the time the site is being created.
So, in addition to routing the normal URL, I also need to route something like this to the directory:
www.myCMSThingy.com/somesite
Other CMSs must have solved this problem but I can’t seem to find any examples.