[Zope] redirection of whole sub-trees

Jay, Dylan djay@lucent.com
Thu, 9 Sep 1999 09:17:20 +1000


> -----Original Message-----
> From: Martijn Pieters [mailto:mj@antraciet.nl]
> Sent: Wednesday, September 08, 1999 19:41
> To: Jay, Dylan; 'alex@mop.no'
> Cc: 'zope@zope.org'
> Subject: Re: [Zope] redirection of whole sub-trees
> 
> 
> At 08:49 08/09/99 , Jay, Dylan wrote:
> >Is it possible to make this product redirect whole 
> sub-trees? I'm migrating
> >a Zop1 site using cgi under IIS to Zope2 using ZServer. I 
> want to redirect
> >all the "/cgi-bin/zope.exe/(.*)" queries to "/\1" using the 
> grouping syntax.
> >since I'm not using apache I can't use mod_rewrite so this 
> is the only
> >option I can think of at the moment and I can't upgrade 
> until I have the
> >redirection in place.
> >
> >I can do the substitution no prob by changing after line 95 like so
> >
> >       for k in self.Mappings.keys():
> >         m = re.match(k, Name)
> >         if m:
> >           Name = re.sub(k, self.Mappings[k], Name)
> >
> >But "Name" is not the remainder of the url :(
> 
> I believe there is a redirection product doing just that:
> 
>   http://www.zope.org:18200/Members/astaubo/Redirector

Opps, didn't make myself clear. The Redirector product is what I'm using and
it doesn't do that. It redirects only objects in one folder not and entire
subtree.