Alfredo P. Ricafort wrote at 2004-2-10 18:40 +0800:
I defined the content of my site under the Zope folder '/home' which is directly under the 'Root Folder'. But this site is accessed by the url 'www.mydomain.com/Zope'. I managed to do this using a VirtualHost Monster, and Rewrite rule in Apache as follows:
RewriteRule ^/Zope/(.*) http://localhost:8080/VirtualHostBase/http/www.mydomain.com:8000/VirtualHost... [L,P]
My problem now is that I have a dtml-tree, and this tree access images from '/p_' directory using a relative path. For example, the expand button (+) in the tree is referenced as:
<img src="/p_/pl" alt="+" border="0" />
This fails because the correct path should be 'Zope/p_/pl'.
Is there a way that I can correct this url from dtml-tree?
You must (unfortunately) change the code in "TreeDisplay/TreeTag.py". In a private (no longer accessible) version, I had reactivated the (now commented out) arguments "opened_decoration", "closed_decoration", ... arguments of "TreeTag.__init__". -- Dieter