Sitecore 页面预览不适用于多站点设置

发布于 2024-09-28 06:49:01 字数 1475 浏览 7 评论 0原文

我有一个包含多个网站的 Sitecore 项目,其中预览选项无法按预期工作。当我在带有演示文稿的项目上单击演示文稿选项卡中的“预览”时,出现以下错误:

未找到请求的文档 ->

Requested URL: /sitecore/content/<WebnameXXX>/home 
User Name: default\Anonymous 
Site Name: website 
If the page you are trying to display exists, please check that an appropriate prefix    has been added to the IgnoreUrlPrefixes setting in the web.config. 

我可以做什么来解决这个问题? 我目前在 web.config 文件中使用 2 个网站节点。

Web.config站点节点:

<site name="ggxxx_exxx1" hostName="ggxxx1.exxx.nl" virtualFolder="/" physicalFolder="/" rootPath="/sitecore/content/gxxx1_nl" language="nl-NL" startItem="/home" database="web" domain="extranet" allowDebug="false" cacheHtml="true" htmlCacheSize="10MB" registryCacheSize="0" viewStateCacheSize="0" xslCacheSize="5MB" filteredItemsCacheSize="2MB" enablePreview="true" enableWebEdit="true" enableAnalytics="true" enableDebugger="false" disableClientData="false" />

<site name="ggxxx_exxx2" hostName="ggxxx2.exxx.nl" virtualFolder="/" physicalFolder="/" rootPath="/sitecore/content/ggxxx2_nl" language="nl-NL" startItem="/home" database="web" domain="extranet" allowDebug="false" cacheHtml="true" htmlCacheSize="10MB" registryCacheSize="0" viewStateCacheSize="0" xslCacheSize="5MB" filteredItemsCacheSize="2MB" enablePreview="true" enableWebEdit="true" enableAnalytics="true" enableDebugger="false" disableClientData="false" />

I have a Sitecore project with multiple websites where the Preview option is not working like expected. When i'm on an item with a presentation and click on Preview in the presentation tab i get the following error:

The requested document was not found ->

Requested URL: /sitecore/content/<WebnameXXX>/home 
User Name: default\Anonymous 
Site Name: website 
If the page you are trying to display exists, please check that an appropriate prefix    has been added to the IgnoreUrlPrefixes setting in the web.config. 

What can I do to solve this issue?
I'm currently using 2 website nodes in the web.config file.

Web.config site nodes:

<site name="ggxxx_exxx1" hostName="ggxxx1.exxx.nl" virtualFolder="/" physicalFolder="/" rootPath="/sitecore/content/gxxx1_nl" language="nl-NL" startItem="/home" database="web" domain="extranet" allowDebug="false" cacheHtml="true" htmlCacheSize="10MB" registryCacheSize="0" viewStateCacheSize="0" xslCacheSize="5MB" filteredItemsCacheSize="2MB" enablePreview="true" enableWebEdit="true" enableAnalytics="true" enableDebugger="false" disableClientData="false" />

<site name="ggxxx_exxx2" hostName="ggxxx2.exxx.nl" virtualFolder="/" physicalFolder="/" rootPath="/sitecore/content/ggxxx2_nl" language="nl-NL" startItem="/home" database="web" domain="extranet" allowDebug="false" cacheHtml="true" htmlCacheSize="10MB" registryCacheSize="0" viewStateCacheSize="0" xslCacheSize="5MB" filteredItemsCacheSize="2MB" enablePreview="true" enableWebEdit="true" enableAnalytics="true" enableDebugger="false" disableClientData="false" />

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

婴鹅 2024-10-05 06:49:01

看起来您的网站定义稍微偏离

/sitecore/content --//--- home

(双斜杠)

Looks like your site definition is slightly off

/sitecore/content --//--- home

(double slash)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文