Thanks guys for the useful thread. Richard, you saved me a lot of time. [url=http://wiki.magnolia-cms.com/display/WIKI/How+to+setup+a+custom+404+handler]The Magnolia CMS documentation regarding a custom 404 page[/url] does not mention anything about configuring a "bypass".
Here are some guidelines for dummies: 1. add your "errorPages" directory under project's "webapp" dir (same directory level as "WEB-INF" dir) 2. add your custom 404 page to "errorPages" dir, ie "Mgnl-404.html" 3. edit web.xml (located under "WEB-INF" dir), add just before the closing </web-app> : <error-page> <error-code>404</error-code> <location>/errorPages/Mgnl_404.html</location> </error-page> 4. in admin central, go to Configuration > /Servers/filters/cms/bypasses/, and duplicate "docroot" node 5. edit the duplicated "docroot" node: rename it "errorPages" (but you can name it anything really), then for the subnode "pattern" change the value from "/docroot" to "/errorPages" 6. restart tomcat 7. try access a page that does not exist... voila :) Please correct me if I missed anything. -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=d7d48efd-87ca-4423-bd7b-4d5a9379f531 You are invited to Magnolia Conference. Less than a month to go! Register now: http://www.magnolia-cms.com/conference/register.html ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
