Can someone help me with web switching for zope and static pages?

This is what I hope to achieve:

1) Visitor visits http://www.maindomain.com/STATIC_PAGE
2) mod_rewrite redirects visitor to http://www.staticdomain.com/STATIC_PAGE

1) Visitor visits http://www.maindomain.com/ZOPE_PAGE
2) mod_rewrite proxxy passes visitor to http://www.maindomain.com/ZOPE_PAGE

I was able to do this using manual rewriterules. But as the static pages increase, the rules also increase so I plan to use rewritemaps.

Here is a sample of what I have done so far. I need help with this because proxy does not work and I need proxy for VirtualHostMonster.

Please help me. Thanks.


RewriteEngine on
RewriteLog /home/folder/rewrite.log
RewriteLogLevel 2
RewriteMap   lowercase  int:tolower

# define the map file
RewriteMap   folders      txt:/home/folder/rule.maps

# this does the file-based remap
RewriteRule  ^/([^/]+)/?(.*)   ${folders:$1|http://www.zopedomain.com:8080/VirtualHostBase/http/www.maindomain.com.ph:80/zopefolder/VirtualHostRoot/$1} [P,L]


fritz <www.mesedilla.com>
systems administrator

summit interactive, inc.
www.fhm.com.ph | www.femalenetwork.com | www.candymag.com
---
+basta ikaw lord