[Zope] Apache rewrite

Evan Simpson evan@4-am.com
Wed, 24 Nov 1999 13:55:03 -0600


Alexander Limi wrote:

> I want to make it possible to write http://domain.com/artist1 and be sent
> to artist1 in the artists directory transparently. I figure the easiest way
> to do this is in Apache via mod_rewrite (correct me if I'm wrong, please :)
>
> A solution where all queries to http://domain.com/something would be sent
> into the artists directory with an exception for http://domain.com/articles
> would be sufficient.

How will you access/manage objects outside of '/articles'?  Using a different
domain name? a different port? the raw IP address?

In any case, the SiteAccess Product will do what you want.  You can make a
DTML Method in your root containing:

<dtml-if expr="...decide whether to rewrite this request...">
  <dtml-call expr="REQUEST.path.append('articles')">
</dtml-if>

and set it up as an Access Rule.

Cheers,

Evan @ 4-am