Re: COREBlog as home page
Pupeno <[email protected]>
| Newsgroups | gmane.comp.python.zope.coreblog.english |
|---|---|
| Message-ID | <[email protected]> |
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
_______________________________________________
COREblog-en mailing list
COREblog-en-/9qXvnWia/9Wk0Htik3J/[email protected]
http://postaria.com/cgi-bin/mailman/listinfo/coreblog-en
Unsubscription writing to coreblog-en-leave-/9qXvnWia/9Wk0Htik3J/[email protected]
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBD24T7fW48a9PWGkURAltXAJ9obKbe6/VYooXCPYNHrGBMqW07GwCeOySv 2DatET12G28dq5uRjC+tkxI= =K9DT -----END PGP SIGNATURE-----