On Friday 27 January 2006 05:18, Sascha Welter wrote: > The proper solution is: > > - Host Zope behind Apache and use Apache's RewriteRules to rewrite the > requests. You can find information about how to do this on > http://zopewiki.org/ZopeAndApache, inside the Help of the "Virtual > Host Monster" object in the ZMI, and finally you can use > http://betabug.ch/zope/witch to get a proper RewriteRule.
This is the proper ? I would expect something more plonish to be proper (not
something that needs the aid of Apache).
Anyway, I gave it a try, I wrote:
RewriteCond %{HTTP_HOST} ^new.pupeno.com [NC]
RewriteRule ^/(.*)
http://localhost:8080/VirtualHostBase/http/%{SERVER_NAME}:80/pupeno.com/VirtualHostRoot/blog/$1
[NC,P,L]
on my apache rules and it successfully shows the blog, but with some problems:
- It shows "Blog" selected instead of "Home" on the navigation bar. I believe
I can solve that by disabling the top level (aka home) of the navigation bar.
- No matter where I am, the tab "blog" is the one always selected
> or since your question does not really translate to the example you
> give:
>
> - Put a Python Script into the Zope folder "pupeno.com", call it
> "index_html" and in the python code have something like:
>
> request.RESPONSE.redirect('http://zope.poly.powerfulnet.net/pupeno.com/blog
>')
I'd prefeer to show the blog on home rather than redirect. I hate sites that
redirect me somewhere else when I type its URL, because then I have to do
bookmarking by hand or bookmark to a sub url which may be dynamic (or a
dynamic redirect).
Anyway, I am playing with having the blog itself named index_url, I know it
behaves funny (folderwise), but so far, it works.
Thanks.
--
Pupeno <[EMAIL PROTECTED]> (http://pupeno.com)
Vendemos: Conocer y collecionar Monedas y Billetes de Todo el Mundo:
http://pupeno.com/vendo/#monedas
pgpi0yj8qBjat.pgp
Description: PGP signature
_______________________________________________ COREblog-en mailing list [email protected] http://postaria.com/cgi-bin/mailman/listinfo/coreblog-en Unsubscription writing to [EMAIL PROTECTED]
