Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Talk:Importing from Movable Type to WordPress

This appears to be taken from MT-Redirect on the WordPress Wiki. However, some lines were left out and I think they are important. Specifically, "When you load redirect.php it should give you text that you then copy to the relevant .htaccess file. Improvements and suggestions welcome. This may break if you have double quotes in a title." But these instructions could be clearer. Is redirect.php a file you create before you have MT output to it, or will MT create the file when it does the outputting? And what is the "relevant .htaccess file"? Is it in the root WordPress directory or is it in a MT directory? I posted this thread [1] asking for clarification of these points, but while I was directed to useful information, it didn't address the apparent omissions in this Codex entry.--KathyP 16:07, 16 May 2005 (UTC)

Also, Carthik, we've had some questions about the date issues for importing MT into WordPress. Could you address how to fix the MT dates in order to work for the import. Thanks. Lorelle 02:14, 23 May 2005 (UTC)

redirect confuses

I'm trying to use the code below to convert MT/Typepad .html-formatted permalinks (with underscores) into WP permalinks (with hyphens). I do NOT want to use my MT/TP blog template to redirect. I need to figure out a way to rewrite these old .html links & convert them into WP links.

I can't see that anything on this pg. helps me do that (am I wrong?). If I am wrong, then the way this page is written isn't clear to me in terms of how I'm supposed to use this code to reach my goal. I tried to insert the code you suggest in my ht access file but it doesn't work (possibly because it's trying to use the MT template to redirect?):

Redirect Permanent /archives/<$MTEntryID$>.html

http://www.example.com/index.php?s=<$MTEntryTitle encode_url="1"$>

Since I'm paying monthly for my TP site I need to shut it down & so don't have the luxury of using it to point to my new site. Please someone here give some thought to how to help people like me do this.

Even Carthik's tried to help me with a rewrite rule for my htaccess file which he placed in my public_html folder. But it hasn't worked yet either.Richards1052 08:37, 14 Jun 2005 (UTC)

For Typepad

This is what I used, the rules were lost somewhere down the line, Richard. I reworked them:

RewriteEngine On
RewriteBase /tikun_olam/

RewriteRule ^([^_]*)_([^_]*)_([^_]*)_([^_]*)_(.*)$ /tikun_olam/$1-$2-$3-$4-$5 [L]
RewriteRule ^([^_]*)_([^_]*)_(.*)$ /tikun_olam/$1-$2-$3 [L]
RewriteRule ^([^_]*)_(.*)$ /tikun_olam/$1-$2 [L]
RewriteRule ^(.*)\.html$ /tikun_olam/$1/ [R=301]