In my efforts to finalise my move from Movable Type to TypePad, I found an elegant solution to upload batch of files to TypePad.
One of my problems was to keep old links (URLs) alive. TypePad doesn't permit you to use .htaccess configuration files with rewrite rules or insert php scripts to redirect a request elsewhere. The solution I chose was to create alternate individual archives with the refresh meta tag in their header. In that way, the old address would be redirected to the new one automatically. The problem was uploading the files .. Macinblog isn't what I would call a very busy weblog, but there is close to 200 posts, which means 200 individual uploads through TypePad's "upload file" interface. You quickly get tired of clicking-selecting-return-backspace..
While posting an entry with ecto (former Kung-Log), I remembered that the upload file interface allowed to select and upload multiple files by drag & drop, or file open dialog.
- Select files to upload, and drop them on the upload interface,
- set the upload path,
- make sure "Apply to all" is selected,
- uncheck all settings relating to image files (eventhough ecto will ignore them),
- click upload and enjoy
It works like a charm. The Google SiteSearch box now works properly. Most of the search results returned MovableType style URLs. Now, they are all redirected to to the new TypePad ones.
Note: ecto will soon be available as a public preview version. Until then, use Kung-Log.
For those interested, here's my recipe (click images to enlarge):
- 1. Create a new Archive template
- Login to the MovableType admin interface of your weblog, and select the template section in the left hand navigation bar, and create a new template (here named MT2TP)
- The content of my template is inspired of David Ely's Redirecting MovableType permalinks to TypePad. Amend the following to reflect the settings of your MT installation.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<title>Macinblog redirecting to TypePad</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="refresh" content="2; url=http://www.macinblog.com/<$MTEntryDate format="%Y/%m"$>/<$MTEntryTitle dirify="1" trim_to="15"$>.html" />
<meta name="robots" content="noindex,follow" />
Slight address change. New address is: <a href="http://www.macinblog.com/<$MTEntryDate format="%Y/%m"$>/<$MTEntryTitle dirify="1" trim_to="15"$>.html">http://www.macinblog.com/<$MTEntryDate format="%Y/%m"$>/<$MTEntryTitle dirify="1" trim_to="15"$>.html</a></p>
- 2. Configure your archive options
- Switch to your weblog configuration, and select the "Archiving" option. Add an entry and select "Individual and the name of your new template (here MT2TP).
- Make sure the selected radio button points to your new individual archive.
- 3. Rebuild your site
- 4. Download all the newly created individual archive files to your computer
- 5. Upload all the files to your TypePad weblog
- Drop all the selected files on the image placeholder, uncheck all the parameters relative to image upload, make sure the "Apply to all" is checked and click upload. You're seconds away from Nirvana
Important note: on the downside, you don't have any control on the eventual overwriting of a file. If the same file is uploaded twice, the second one is renamed with a trailing '_1' before the extension. Only the TypePad upload interface will let you overwrite a file.