I love Wordpress. I really do. If nothing else, I love the statistics that Wordpress gives me per post. However, my primary move to another site is simply because I want one integrated site, instead of maintaining two individual ones. Plus, I hate running different reports based on the site I want to look at.
So, being that Liferay is my choice, and I don't want to lose have any broken links from Google or other sites.
So, the biggest challenge? Liferay blogs do not maintain the same URL style as Wordpress. So, how do you redirect Wordpress entries to Liferay entries easily?
First, you must use Apache HTTP server as a front-end to your Liferay system (that should have been your first choice anyway, right?). Then, you just use modrewrite and use a regular expression pattern.
Next, you would use the Wordpress Importer for Liferay. You would install it as another portlet. Once installed, choose the "configuration" of the portlet to choose what you want imported (pages, categories, blog entries, etc). Once the import is complete, you have your blogs.
But, not so fast. If you choose to redirect your existing Wordpress blogs to Liferay, you will end up with lots of 404 errors (page cannot be found). That's because the URL is different.
Wordpress will send over http://<newserver>/year/month/day/title (i.e. http://server.com/2011/02/16/title-of-entry).
Liferay expects /-/blogs/title-of-entry
So, using modrewrite, I used the following pattern
RewriteRule ^/[0-9]+/[0-9]+/[0-9]+/(.*)?$ blog/-/blogs/$1 [R=301,NC,L]
This means, it will strip the year/month/day, and add the title. The R=301 means permanent redirect, NC means not-case-sensitive, and the L means this is the last rule to execute. Keep in mind, that I'm using "blog" first, before "/-/blogs", because that is the page I use for my blogs. Change to fit your needs.
I am still struggling with importing comments, but that should be rectified shortly. Even if I have to wait for Liferay version 6.1.