如何使用页面应用程序的自定义页面更改默认 404 错误页面

How to change the default 404 error page with custom page from pages app

我是 Magnolia 的新手。

我在 Pages App 中创建了一个错误页面。现在我想用我的错误页面更改默认 404 错误页面。我该怎么做?

从 magnolia 3.5 开始(magnolia 内部错误页面)

请打开您的 web.xml 文件并像下面的代码一样更新 error-page 标签,

<error-page>
    <error-code>404</error-code>
    <location>/website-country/error-page</location>
</error-page>.

此处 /website-country/error-pagePages App 中可用的自定义页面。


资源

wiki.magnolia-cms.com/display/WIKI/How+to+setup+a+custom+404+handler

documentation.magnolia-cms.com/display/DOCS/Custom+error+page