Hey guys,
Recently I have been working on quite a large site that combines a Wordpress blog and a Movable Type blog into a single EE site.
The main problem I had was that the WP site already has a bunch of incoming links for entries and categories. Unfortunatley they are the ?p=101 and ?cat=10 kind so mod rewrite is out of the question.
My solution… write an extension and get EE to do the redirect. LG Wordpress Redirect was born. Its a pretty simple extension that’s fairly easy to configure.
Requirements:
When you import your wordpress blog into EE you must create a custom field that holds the WP entry ID. Jot down the custom field ID (not the short_name) becuase you will need that in the configuration.
The only other tricky part might be the category maping configuration…
It goes a little something like this:
2:26:one-column
3:27:two-column
4:28:three-column
6:52:invitation
7:53:newsletter
5:54:announcement
Each category must be on a new line and is divided into three pieces with a colon (:).
Each line must be inthe following format:
wp_cat_id:ee_cat_id:ee_cat_url_title
That’s about it. I wrote this today so it might still have a couple of bugs. I’m throwing it out there for anyone who is interested.
Cheers.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.