Hi Bert,
Actually as long as you keep the error page location same for all site it is as 
simple as it was before. So you setup your error page to
<error-page>
   <error-code>404</error-code>
   <location>/errorPages/404.html</location>
</error-page>
and then, for each site you create such a page

website:/demo-project/errorPages/404
website:/demo-features/errorPages/404
website:/some-other-site/errorPages/404

Later when you are on the site and access non existent url, you will be 
redirected to the /errorPages/404.html, but within same domain. Magnolia will 
resolve the site from the domain and will display proper error page.
This will of course work only on the public with the domain access and not on 
the author where you typically have a lot of cross site access and URIs can't 
be shortened. It will also not cover the sub-sites which have specific uri 
prefix in their URIs. for those cases you would need to add custom 
virtualURIMapping that would be able to redirect to proper error page.

HTH,
Jan

On Jul 1, 2010, at 8:47 AM, Bert Leunis wrote:

> Hello Magnolians,
>  
> When using multisite, we cannot use the general way of setting the error page 
> in the web.xml, as suggested in 
> http://wiki.magnolia-cms.com/display/WIKI/How+to+setup+a+custom+404+handler. 
> Every website may need its own 404 page. Can anyone advise how to setup 
> errorpages for multisite?
>  
> Any help much appreciated!
> Regards, Bert
> 
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------

-  
Best regards,

Jan Haderka, PhD.
Magnolia International Ltd.

http://www.magnolia-cms.com

You should join us at Magnolia Conference 2010: 
http://www.magnolia-cms.com/conference

http://twitter.com/magnolia_cms
http://facebook.com/Magnolia

--------------------------------------

Magnolia®  - Simple Open-Source Content Management





----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to