Redirects within a Python Script-based Access Rule
8 Feb
2001
8 Feb
'01
12:52 a.m.
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
9188
Age (days ago)
9188
Last active (days ago)
0 comments
1 participants
participants (1)
-
Walter Miller