In my current project we need to create a microsite under curent sitecore site for extra branding.
Basically, what I want is using exactily same content tree for both:
http://www.domian.com and http://www.domain.com/microsite
we may need to load different layout for them.
Result:
I endded up using VirtualFolder, it worked for me for minimal available level.
The easiest way to do this would be to create a
microsite.domain.comsite, pointing at the same content path. Then in the web.config set it to use a different device (you can set this in the site element). You can then specify an alternate layout for each template for this device (device=default uses layout1, device=microsite uses micrositelayout).This won’t give you the
www.domain.com/micrositeURL structure but it will enable simple switching between layouts for the same content.See Varying content and presentation by host name in Sitecore 6.4