I'm using a Sitecore install with multiple sites. When linking from example1.com (/sitecore/content/example1) to an item under example2.com (/sitecore/content/example2/about)
Sitecore is not generating the link correctly for any cross-domain links. It is generating: http://www.example1.com/example2/about.aspx This is what is expected: http://www.example2.com/about.aspx
The same thing happens from example2.com when linking to example1.com or any item under that site.
Both sites are defined in the web.config.
The rootNodes are both "/sitecore/content"
The start items are "/example1" and "/example2" respectively.
Rendering.SiteResolving is set to true
Rendering.SiteResolvingMatchCurrentSite is set to false
I'm using sc:link to generate the links.
Sitecore.Links.LinkProvider's alwaysIncludeServerUrl is set to true