[Zope] More problems with redirecting from standard_error_message
Andy McKay
andym@ActiveState.com
Mon, 9 Jul 2001 09:09:49 -0700
Have you tried raising an error as a Redirect?
<dtml-raise type="Redirect">http://www.newsite.com/index_html</dtml-raise>
Note if you are raising the redirect, you will never see the text following.
Cheers.
--
Andy McKay.
----- Original Message -----
From: "Peter Hernberg" <petehern@yahoo.com>
To: <zope@zope.org>
Sent: Monday, July 09, 2001 8:57 AM
Subject: [Zope] More problems with redirecting from standard_error_message
> I recently posted about problems redirecting from standard_error_message
(see
> http://lists.zope.org/pipermail/zope/2001-July/094515.html). After reading
the
> docs on redirecting from standard_error_message
> (http://www.zope.org/Members/JohnC/StandardErrorMessage), I tried using
> RESPONSE.redirect(). No matter where I call RESPONSE.redirect(). I've
whittled
> down my standard_error_message to
>
> <dtml-if "error_type=='NotFound'">
> <dtml-call "RESPONSE.redirect('http://www.newsite.com/index_html')">
> <html>
> <body>
> The page you requested is now <a
> href="http://www.newsite.com/index_html">here. </a>
> </body>
> </html>
> <dtml-else>
> ...The normal standard_error_message is here...
> </dtml-if>
>
>
> The "page has moved here" message shows up, but neither NS or IE will
redirect.
> What am I doing wrong?
>
> FYI, I'm running Zope 2.3.3 through Apache (proxy) RewriteRules and a
> VirtualHostMonster. It occurs to me that the proxying/VirtualHostMonster
might
> be the source of my problems...
>
> =====
> Peter Hernberg
> Physicists tell us there are an inifite number of parallel universes. Is
it so much to ask to be the center of this one?
>
> "More love or more disdain I crave" --Charles Webbe
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>