Sitecore 页面预览不适用于多站点设置
我有一个包含多个网站的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来您的网站定义稍微偏离
/sitecore/content --//--- home
(双斜杠)
Looks like your site definition is slightly off
/sitecore/content --//--- home
(double slash)