[Zope] Redirects within a Python Script-based Access Rule
Walter Miller
wmiller@macromedia.com
Wed, 7 Feb 2001 16:52:58 -0800
How does one write a redirect within a Python Script-based Access Rule?
For example, foo.com and foo.net both getting redirected to www.foo.com.
Because I already have a virtual hosting environment using an Access Rule
and a Virtual Hosting Monster, the easy albeit verbose solution was to
create /vhosts/foo_net and /vhosts/foo-www and put a DTML Method
"index_html" object: <dtml-call "RESPONSE.redirect('http://www.foo.com')">
in each of those folders and have the Access Rule direct requests to those
objects.
Walter