Migrated from Movable Type 2.661 to WordPress 1.2 rc1
Posted by unbrand on 19 May 2004 | 0 Comments
Done! Mostly. Still a few rough edges like layout, and auto-pinging of various sites, but a painless process overall. Here are some very terse and messy notes in case anyone may find them interesting:
+ install mysql + 4.0.15 + /usr/bin/mysqld_safe & (should be os user mysql when doing this from shell) + remove anonymous users + set root passwords via shell> mysql -u root mysql> UPDATE mysql.user SET Password = PASSWORD WHERE User = ‘root’; mysql> FLUSH PRIVILEGES; + create database wordpress + table prefix for unbounded is ‘ub_’
+ move css (assumption is I’m using MT’s css straight, not WP’s css) - move templates – wp: index.php (mainindex.tmpl) + keep wp’s head + dereference my header.tmpl and paste in + translate main body with equiv wp fnality + dereference my rightcol.tmpl and paste in – verify content of
against what was in MT + move content using instructions http://carthik.net/wpdocs/importmt.html+ If you need to re-import to pick up new content, no problem. Just run the import-mt.php again. It will skip articles that have already been brought over.
+ If you want to just pick up new comments/trackbacks, you'll need to first delete the article from within the new wordpress admin interface, then re-run the import-mt.php.
- redirection PROBLEM—the above conflicts with the mod-rewrite stuff for nice URLs SOLUTION—make sure old MT archive stuff resolves to a different URI. In my case, change Wordpress’s Permalink structure to point to unbounded.org/archive, while leaving old MT stuff at unbounded.org/archives old: archives new: archive – note that you must get this naming right before you rebuild the MT archives or else you have to edit the mt – html redirect html files individually
Step 1: To create permanent article links that look like http://unbounded.org/archives/2004/05/16/goodbye-movable-type/
- go into wordpress admin interface, options/permalinks
- copy "/archives/year/monthnum/day/postname/" into the first text box labeled "Use the template tags above to create a virtual site structure:"
- click "Update Permalink Structure"
- copy the resulting text in the textbox below
- click the "edit it through your template interface"
- paste the text in the template interface for .htaccess
- if it's not there, just create an empty file in the wp root directory
- click "update file"
- done!
Step 2:
Redirection instructions from WordPress
+ add .htaccess
- for me, copy MT's blog/archives dir to wpblog
- this will be the old MT stuff that redirects 301 to new stuff.
- finish templates
– wp: wp-comments.php (comment_listing.tmpl)
– wp: wp-comments-popup.php (comment_listing.tmpl ?)
- modify mt migration script to put i witness bits straight in proper place in db
- set up blog pings (see bookmars folder)
– must add functions
—ignore this pingback test: test