【发布时间】:2011-08-03 15:47:09
【问题描述】:
我正在尝试将自定义 404 页面添加到 umbraco 即使我让他们在几个项目中工作,但在这个 umbraco 4.7 中它不起作用。
那么,我有什么, 多站点,每个站点都有几种语言。
我的 umbracoSettings 包含以下内容:
<errors>
<error404>
<errorPage culture="default">1842</errorPage>
<errorPage culture="en-GB">1842</errorPage>
<errorPage culture="nl-BE">1843</errorPage>
<errorPage culture="fr-BE">1844</errorPage>
</error404>
</errors>
就像在其他项目中一样 虽然我不断得到 IIS 404 页面。
所以,我尝试了this topic 中的解决方案 passThrough 和自定义解决方案似乎都不起作用
passThrough 给出了这个:
找不到页面没有 umbraco 文档与 url 匹配 'http://www.mysite.be/en/facebook'
umbraco 尝试使用这个 xpath 来匹配它 查询'/domainprefixes-are-used-so-i-do-not-work')
这个页面可以通过添加 id 替换为自定义 404 页面 umbraco 文档显示为 404 页面 /config/umbracoSettings.config 文件。只需将 id 添加到 '/settings/content/errors/error404' 元素。
有关详细信息,请访问有关自定义 404 的信息 umbraco 网站。
自定义给出了这个结果:
找不到页面没有 umbraco 文档与 url 匹配 'http://solex.d01-win-dev.be/non-existing-page.aspx?404;http://solex.d01-win-dev.be:80/en/facebook'
umbraco 尝试使用这个 xpath 来匹配它 查询'/domainprefixes-are-used-so-i-do-not-work')
这个页面可以通过添加 id 替换为自定义 404 页面 umbraco 文档显示为 404 页面 /config/umbracoSettings.config 文件。只需将 id 添加到 '/settings/content/errors/error404' 元素。
有关更多信息,请访问 umbraco 网站上有关自定义 404 的信息。
在我看来,他似乎没有前往 umbracoSettings 来获取我的 error404 映射。 您需要通过 web.config 键激活自定义错误页面在 4.7 中是否发生了变化?
【问题讨论】: