[Zope] Redirecting to an "under construction" page

Dieter Maurer dieter at handshake.de
Tue Dec 9 14:15:53 EST 2003


Gilles Lenfant wrote at 2003-12-9 17:01 +0100:
>I need all URLs of a Zope site to be temporarily redirected to an "under 
>construction" page.
>
>http://www.foo.com/any/path?any=query
>
>-->
>
>http://www.foo.com/underconstruction_html

I would use an Apache Rewrite Rule for this...

>I've tried through an access rule script but it seems that the 
>request.RESPONSE.redirect(...) doesn't work in that case.
>Any idea ?

Use "raise 'Redirect', location" instead.

-- 
Dieter



More information about the Zope mailing list