Michael Harris has an example of mapping

example.com/slug

to a WP style permalink using rewrite rules (not Route 301)

example.com/yyyy/mm/dd/slug

You should be able to adapt this to suit your needs (although I don't
know what the keyword for 'tag' is - tag ?)

http://twofishcreative.com/michael/blog/2007/12/22/wordpress-urls-habari-urls

The Wiki also has a tutorial on rewrite rules

http://wiki.habariproject.org/en/Rewrite_Tutorial

HTH
--
Andy

On Sep 27, 11:00 am, "胡超" <[EMAIL PROTECTED]> wrote:
> Thanks, Joel
> but I don't need tags in my new permalink.
>
> e.g. an old link to my post under category "life" in my old blog is :
> example.com/life/post-slug.
> Now in my new blog it is example.com/post-slug
>
> what I want is that people type example.com/life/post-slug can be routed to
> example.com/post-slug
>
> so I need to write a rule about /life/*****, and so are other categories in
> my old system.
>
> sorry about my poor English make this hard to understand.
> 2008/9/27 Joel Lee <[EMAIL PROTECTED]>
>
>
>
>
>
> > You don't need to write multiple rules, one rule can just rule them
> > all. But there is a problem: if you have a post which has multiple
> > tags. (There's no "categories" in Habari for now) Which tag would you
> > like to use in the permalink? The first tag? Order by alphabetical or
> > id?
>
> > On Sep 27, 10:49 am, "胡超" <[EMAIL PROTECTED]> wrote:
> > > Hi, everyone, I am new in habari, and now I need some help with writing a
> > > route301 plugin rule.
> > > I was using wordpress for a couple of months, my old permalink structure
> > is
> > > mydomain.com/{$category}/{$slug},  in order to make old links work, i
> > want
> > > to route it to mydomain.com/{$slug}, I know Route301 plugin could do
> > that,
> > > but I know nothing about how to write a rule, is there any tutorial,or
> > could
> > > some one help me with that?
>
> > > I have 4-6 categories when I use wordpress,and I think I have to make a
> > > single rule for each category,is that right?
>
> > > --
> > > Westy
>
> --
> Westy Hu
> Cell:13488684904  Tel:82326210
> College of Software Engineering
> Beijing Univ. of Aero. & Astro., Beijing 100083, China
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/habari-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to