开发者

sitecore multiple domains, shared items

开发者 https://www.devze.com 2023-01-31 06:29 出处:网络
I have a site in sitecore at domain1.com <site rootPath=\"/sitecore/content\" startItem=\"/home\" .. />

I have a site in sitecore at domain1.com

<site rootPath="/sitecore/content" startItem="/home" .. />

I want to create a second site at domain2.com that uses same items

<site rootPath="/sitecore/content" startItem="/home" ... />

Both sites refer to same items in content tree. Clear?

The links generated by sc:path(.) (makes absolute links) on the domain2.com refer to domain1.com. As far as I understand links refer to the f开发者_如何学Pythonirst site in web.config that refered to the items in content tree.

How can I get valid links for both sites?


Just Rendering.SiteResolving to false. The the sitecore will determine the urls' hostname from http request.

0

精彩评论

暂无评论...
验证码 换一张
取 消