[Zope] Custom 404 - Resource not found

Dieter Maurer dieter at handshake.de
Wed Apr 19 13:40:30 EDT 2006


Andy Yates wrote at 2006-4-18 14:53 -0500:
>Is there a way to customize the Zope 404 error page? 

404 ("NotFound") responses go through the normal error handling.
Thus, they are handled by "standard_error_message" -- however
maybe one higher than you expect:

  Error handling starts as soon as the first URL segment cannot
  be located. Starting from this point, "raise_standardErrorMessage"
  is looked for upwards when then looks for "standard_error_message"
  via acquisition.

> ...
>Changing standard_error_message does not seem change this error page.

Maybe, you made a mistake?
If your "standard_error_message" causes an exception a
default error handling is used.

> I
>need to do this inside Zope or via the apache front end which talks to
>Zope through mod_rewrite/proxy and Virtual Host Monster.

You can do it inside Zope.

But, you may also be able to do it in Apache.

-- 
Dieter


More information about the Zope mailing list