the empty set

Batch upload to TypePad

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)
[ MT template ]
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" "">
<html xmlns="">

<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=<$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="<$MTEntryDate format="%Y/%m"$>/<$MTEntryTitle dirify="1" trim_to="15"$>.html"><$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).
[ MT template ]
Make sure the selected radio button points to your new individual archive.
[ MT template ]
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
[ MT template ]
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.

Ø permalink:

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

Previous: From T to T3

Next: Will 2004 be like 1984 ?


Hello, my name is David Roessli. I am a freelance web designer and developer based in Geneva, Switzerland.

This weblog is an nth attempt to solve my multiple online personalities and weblog/rss feeds burnout issues. (more)


I have been contemplating the idea of upgrading my desktop Mac since this spring. The latest 27" iMac (Quad-Core) seemed the perfect candidate, but the release of Apple's 27" Monitor last September made me stick with the Mac Pro...


The autopsy of an iconic album cover picked up on A stacked graph of successive radio signals from pulsar CP 1919, in a 1977 astronomy encyclopedia that originated in a 1970 Ph.D. thesis. Fascinating <3...


Check out my latest Flickr ramblings. Mostly day to day cameraphone pictures stolen here and there.

© 2000-2018 David Roessli | v4.1 | as valid xhtml and css as possible | hosted by Infomaniak | RSS feeds. Looking for my Privacy Policy ?