[Zope] Apache mod_rewrite module...

mindlace mindlace@imeme.net
Mon, 22 May 2000 13:04:33 -0600


mindlace wrote:

> What I think you need to do is use SiteAccess so that it strips out the
> port.  You can use an access rule like so:
> <dtml-let basename="_.string.join(_.string.split(HTTP_HOST,
> ':')[-2:-1])">
>   <dtml-call "REQUEST.set('SiteRootBASE','http://'+basename)">
> </dtml-let>

You may have to change the string.split if the subdomain is important.

~ethan