I am using VirtualDocumentRoot to allow me to have unlimited amount of domains for a .local
VirtualDocumentRoot "C:/wamp/www/Client Sites/%-2"
What I would like to have is a domain like
"domain.local" and "www.domain.local" direct to "C:/wamp/www/Client Sites/domain"
but something like "dev.domain.local" to direct to "C:/wamp/www/Client Sites/domain/dev"
and "images.dev.domain.local" to direct to "C:/wamp/www/Client Sites/domain/dev/images".
However I would also like to be able to have "www." added to the front of any domain and not be included for example "www.images.dev.domain.local" would just direct to the folder location for "images.dev.domain.local" which would be "C:/wamp/www/Client Sites/dev/images".
Also I would like to know how I can set the DocumentRoot for a VirtualDocumentRoot, as currently with my VirtualDocumentRoot, I can have a domain name like "images.domain.local" but it directs to "C:/wamp/www/Client Sites/domain" and not "C:/wamp/www/Client Sites/domain/images", and no matter what the domain name is the DocumentRoot is always "C:/wamp/www", how can I make it so that if I go to "images.domain.local" the PHP "$_SERVER['DOCUMENT_ROOT']" would equal "C:/wamp/www/Client Sites/domain/images" as that would be the base folder to any files located on "images.domain.local".
Any help would be grateful, thank you.
hand picked coder.
For anyone worried about SQL injection go have a look at my small yet powerful script here
Go Pledge for Light Table
, if it hit's $300,000 Python and other languages will get added.
I am 1 of 65,608 people to get a Pebble Watch :P