我有一个包含多个网站的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" />
答案 0 :(得分:2)
看起来您的网站定义略有偏差
/ sitecore / content - // --- home
(双斜线)