[Zope] Rewrite problem

zope at netchan.cotse.net zope at netchan.cotse.net
Fri May 14 01:08:49 EDT 2004


> with apache. I want apache to answer everything except when 
> an url goes to
> /blog, then I want zope to take over for that directory.

> RewriteRule ^/(.*)
http://127.0.0.1:8080/VirtualHostBase/http/myservername:80/blog/VirtualH
ostRoot/_vh_blog/$1[L,P]

The first part of the rewriterule is the pattern it tries to match on
ghe incoming url. "^/(.*)" means every url. Yours should look like
something like:
RewriteRule ^/blog(.*)
http://127.0.0.1:8080/VirtualHostBase/http/myservername:80/blog/VirtualH
ostRoot/_vh_blog/$1[L,P] 

Read mod_rewrite documentation.

Reagrds,
Sandor




More information about the Zope mailing list