On Fri, Jan 27, 2006 at 03:07:41AM -0300, Pupeno wrote:
> Does anybody know how can I make a COREBlog the home page of a site ?
> Like http://zope.poly.powerfulnet.net/pupeno.com really showing 
> http://zope.poly.powerfulnet.net/pupeno.com/blog

I've done exactly that using Apache mod_rewrite. 

Here's the recipe, with some forward references to the mod_rewrite
rules below:

1. Get standard Zope VHM + mod_rewrite working.

2. Create a Zope folder for your site. Goto the folder.
  
    My Zope folder is /sandbox.rulemaker.net/ngps.

3. Create a COREBlog instance. Goto the instance. Switch to `content' view.

    My COREBlog instance is /sandbox.rulemaker.net/ngps/blog.

4. Create a folder to store the non-blog content of your site.

    I use /sandbox.rulemaker.net/ngps/blog/site.

5. Modify the following (pretty-printed) mod_rewrite rules to taste:

  RewriteRule ^/ngps$ 
  
http://x.x.x.x:8080/VirtualHostBase/http/sandbox.rulemaker.net:80/sandbox.rulemaker.net/ngps/blog/site/VirtualHostRoot/_vh_ngps/
 
  [L,P]

    This rule is for 4 above, to serve the non-blog content of my site.
    index_html is acquired, i.e., comes from COREBlog, i.e., shows
    the blog front page.

  RewriteRule 
  ^/ngps/(.*) 
  
http://x.x.x.x:8080/VirtualHostBase/http/sandbox.rulemaker.net:80/sandbox.rulemaker.net/ngps/blog/site/VirtualHostRoot/_vh_ngps/$1
 
  [L,P]

    This allows direct access to non-blog content, e.g.,
    http://sandbox.rulemaker.net/ngps/m2/

  RewriteRule 
  ^/ngps/([0-9]+.*) 
  
http://x.x.x.x:8080/VirtualHostBase/http/sandbox.rulemaker.net:80/sandbox.rulemaker.net/ngps/blog/VirtualHostRoot/_vh_ngps/$1
 
  [L,P]

    COREBlog "permalink" URLs are strictly numbers. This rule allows direct
    access to entries, e.g., http://sandbox.rulemaker.net/ngps/114.


HTH. Cheers.

 

_______________________________________________
COREblog-en mailing list
[email protected]
http://postaria.com/cgi-bin/mailman/listinfo/coreblog-en
Unsubscription writing to [EMAIL PROTECTED]

Reply via email to