UPDATE: This issue was caused by Aliases. See my answer below.
I am attempting to implement a multi-site environment in Sitecore 6.5 that looks something like the following:
As you can see, there is a main site under the "Corporate" folder, and several sub-sites under the "Microsites" folder. The issue I am experiencing is that I need the sub-sites to exist within the same domain. For example:
- mysite.com/ (Main site)
- mysite.com/subsite (Subsite 1)
- mysite.com/subsite2 (Subsite 2)
So far, here is how I have it configured in my sites collection:
<sites>
...
<site name="subsite" hostName="mysite.com" virtualFolder="/subsite" physicalFolder="/subsite" rootPath="/sitecore/content/microsites/subsite" startItem="/home" ...
<site name="subsite2" hostName="mysite.com" virtualFolder="/subsite2" physicalFolder="/subsite2" rootPath="/sitecore/content/microsites/subsite2" startItem="/home" ...
<site name="website" hostName="mysite.com" virtualFolder="/" physicalFolder="/" rootPath="/sitecore/content/corporate/" startItem="/home" ...
...
</sites>
For the most part, Sitecore is able to successfully deliver me to the sub-sites based on the virtualFolder path alone. However, the issue I am experiencing is that if I have an item with the same name in my subsite as I do in the main corporate site, Sitecore will always attempt to load the Item from the main corporate site.
For instance, say I have an item called About that exists as a child of the main site as well as in one of my sub-sites. By navigating to mysite.com/subsite/about, the URL will remain the same, however, Sitecore will serve up the About page from the main site. If the item is called AboutUs in the subsite's tree, everything works great.
Any ideas on how to work around this issue?