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

戏子无情 提交于 2019-12-11 13:13:53

问题


I am new to Magnolia.

I have created an Error page in Pages App. Now I would like to change the Default 404 error page with my error page. How do I do this?


回答1:


Since magnolia 3.5 (magnolia internal error page)

Please open your web.xml file and update error-page tag like the following code,

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

Here /website-country/error-page is the custom page which is available in Pages App.


Resources

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

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



来源:https://stackoverflow.com/questions/32507639/how-to-change-the-default-404-error-page-with-custom-page-from-pages-app

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!