[Zope] Rewrite trickery with virtual hosts and RewriteRule

Felix Ulrich-Oltean felix@chaptereight.com
07 Jan 2003 15:15:42 +0000


Hi

I've seen that with Virtual Host Monster you can prefix any path element
with _vh_ to stuff it into the url.  I'd like to insert this prefix to a
set of path elements in Apache RewriteRules, e.g.

/Clients/SomeCo/zope_/sites/some_co/manage

should be rewritten to 

blah/VirtualHostRoot/_vh_Clients/_vh_SomeCo/_vh_zope_/some_co/manage

I'm a bit stuck with the RE syntax though - any help appreciated.

TIA,

Felix.