[Zope] Zope VHM Rewrite Help

Paul Winkler pw_lists at slinkp.com
Mon Aug 30 16:59:44 EDT 2004


On Mon, Aug 30, 2004 at 03:19:33PM -0500, Heather Perkins wrote:
> Hello everyone.  I am trying to rewrite the URL for my Plone Portal 
> using the Zope Virtual Hosting Monster and Apache's RewriteEngine.  
> However, I can't quite get the rewritten URL to work. 
> 
> My site is located at:  http://pyrite.truman.edu:8201/miller
> My desired url is:  http://pyrite.truman.edu/millerj
> 
> My VirtualHost block in Apache's httpd.conf file looks like:
>   <VirtualHost pyrite.truman.edu>
>     ServerName pyrite.truman.edu
>     RewriteEngine On
>     # currently used RewriteRule (delete this when the Zope 
>     # VHM rewrite rule is correctly configured)
>     RewriteRule ^/millerj(.*)$ http://pyrite.truman.edu:8201/miller$1 
> [L,P]
>     # uncomment this RewriteRule when you figure out how to
>     # anchor the site properly
>     # RewriteRule ^/millerj(.*)$ 
> http://pyrite.truman.edu:8201/miller/VirtualHostBase/http/pyrite.truman.edu:80/miller/VirtualHostRoot/millerj
>   </VirtualHost>
> 
> Any help would be greatly appreciated.

I think what you want is:

  RewriteRule ^/millerj/(.*) http://pyrite.truman.edu:8201/VirtualHostBase/http/pyrite.truman.edu:80/miller/VirtualHostRoot/_vh_millerj/$1

-- 

Paul Winkler
http://www.slinkp.com


More information about the Zope mailing list