Archives

April 2004 (7)
March 2004 (12)
February 2004 (12)
January 2004 (22)
December 2003 (19)
November 2003 (16)
October 2003 (26)
September 2003 (18)
August 2003 (38)
July 2003 (80)
June 2003 (13)
May 2003 (24)
April 2003 (76)
March 2003 (75)
February 2003 (51)
January 2003 (73)

Category

Family (5)
FYI (18)
Games (2)
Geek (88)
Geographic (3)
Hacks (13)
Home (15)
Humor (54)
Ideas (20)
Ideaspace (15)
Local (15)
Metadata (10)
Microsoft (2)
MovableType (5)
Nitwits (66)
PKI (2)
Politics (22)
Quotes (3)
RDF (15)
RSS (4)
Security (3)
Semantic Web (13)
Site Info (13)
Social Networks (1)
Spam (9)
Sysadmin (1)
Tips (2)
Tivo (2)
TMFTOTHD (1)
To Do (1)
Unlisted (1)
Web (3)
Windows (1)

Local

« MetroBlogs »
DC metroblogs
beltway bloggers

Links


Assorted bits

Blogroll Me!
GeoURL
Listed on BlogShares




April 15, 2003

Moving from Radio to MT

If you move from Radio to MT and you want to keep the same URL structure you can. That is, if you're running Radio and having it upload it's files to your own FTP server. If you're using the weblogs.com service you're stuck. But for folks running their own domains there's a way to do it.

Radio dumps it's pages to URLs like "http://sitename.example.com/2003/01/31.html" for daily archives. By default MovableType uses an archives directory and dumps files there. The URLs used by MT end up looking like "http://sitename.example.com/archives/2003_01_31.html". You can change this. It's a two part process that may introduce other steps. You've been warned. You can't lose data here but you can break your URLs. Be careful.

When MT runs it's archiving it puts everything inside an <MTBlogArchiveURL> subdirectory. When the archiving rebuilds are done they base themselves on this path. You can move 'away' from that path using '../' directory traversing.

A default daily template goes to "<$MTBlogArchiveURL$>year_mo_day.html". You can create a new file template to use subdirectories. I use this for my monthly archives: "<$MTArchiveDate format="%Y/%m/%m.html"$>". This dumps files to my site using "<$MTBlogArchiveURL$>/year/month/month.html" locations. It makes for a little tidier processing of directories. I sync using unison, but that's a whole other discussion.

What you may not realize is it's also possible to use a template like: "../other/<$MTArchiveDate format="%Y/%m/%d.html"$>". This would move 'up' the directory hierarchy and then down into the 'other' directory. If you wanted to have MT create the same URLs for daily archives as Radio you'd use this for a Daily Archive file template:

../<$MTArchiveDate format="%Y/%m/%d.html"$>

This would ascend up from the usual /archives directory and then write daily files into new year/month subdirectories.

You can use this in addition to or in replacement of the way MT usually does it. My suggestion is that you do this temporarily and in parallel with normal MT daily archiving. This way when you import your old Radio entries using my Radio Exporter.root tool you'll get archives created in the same path locations as those made by Radio. Once the import is done you could remove this template. This would leave the rendered files in place, just be sure not to delete them in the future.

There are other ways to do this. One is to use the mod_rewrite module available in Apache. Since many sites don't run this module it may not be a viable option. There's also the .htaccess directives for Redirect and RedirectMatch. You could capture the incoming old links and redirect them to the new location. If your site allows use of these directives in an .htaccess file this is probably worth considering. Use of .htaccess directives introduces other overheard factors to it's not without it's issues.

I'll stress this point again, these steps won't work if you're hosting your site on the radio.weblogs.com server. UserLand doesn't support your use of functions like .htaccess and redirects. Considering the reason you're using redirects it's not terribly likely they're going to start either. One one level it would actually help lighten their load. Allowing departing users to configure a redirect would avoid their servers forever shovelling out your old data. But that'd be smart and, well, that's not been a dominant feature of hosting services offered by them.

So, if you're turning off the Radio and migrating to MovableType you can take steps to ease the transition. Give it a try.

MovableType
Perma  | TrackBack (3) | 01:53 PM  | xml

Navigation

Recent Entries

America and Europe: Vive la différence?
Server changes afoot
Diet behavior mod
Googling for sensitive info
Outlook 2003 and IMAP, a marriage made in Hell
Bike to Work Day, May 7th
Speakeasy rocks
Zippo USB?
When geographic data is nowhere 'near' correct
Local campaign contributions

User comments
Trackbacks

Contact

send me an e-mail E-mail
chat with me using MS messenger MSN Messenger
chat with me via AIM America Online
chat with me on ICQ ICQ
chat with me on Yahoo! Yahoo
Add my vCard to your electronic addressbook vCard
Friend of a Friend FoaF

Syndication

XML  RDF  CDF

Comments

XFML

Extra Stuff

foaf
vCard
pgp info
Linked In
Powered by
Movable Type 2.64