Seems like it's been raining forever, though it's probably been less than a week. Forecast shows no sign of it letting up. Sitting at home today, sipping tea, wishing I could snap my fingers and have elves or djinn clean my house.
I should be reading research, writing the grant questionnaire, organizing materials for courses in the fall, building any of a number of websites that I foolishly said I'd work on this summer, finishing the cropping and enhancing of my sister's wedding pictures.
Instead, I'm working on strategies for migrating this blog to www.mamamusings.net. After reading through a relevant entry on Jonathon Delacour's (now inactive) blog, I think the way to handle permalinks will be to use a meta refresh tag in the old files here, redirecting to new archive locations on the new site. The meta tag makes more sense than .htaccess, because I can use MT tags to create highly customized redirects. Each individual entry can be redirected to a new URL with the new site base, as well as the date path and post title. If I'm understanding this properly, I can add the following tag to my individual archive entries on the old server:
<meta http-equiv="refresh" content="2; url=http://www.mamamusings.net/archives/<$MTArchiveDate format="%Y/%m/%d"$>/<$MTEntryTitle dirify="1"$>.php">
As a result, pages with addresses like this:
http://www.it.rit.edu/~ell/mamamusings/archives/000505.html
can be automatically redirected to pages with addresses like this:
http://www.mamamusings.net/archives/2003/07/23/fear_of_flying.php
The more technically inclined amongst you are cordially invited--nay, beseeched--to point out errors in my approach before I do anything stupid.
I have read through the comments in the above-cited post regarding pros and cons of title-based archive file names vs entry number file names. While the title-based names are a problem if you change a title, the entry-number-based names are a problem if you change a server. Since I've not yet changed a post title (that I can think of), and could always handle that with a simple redirect if necessary, the server-switching problem strikes me as a bigger deal.
Weez asked me yesterday why the server switching causes problems, which probably isn't obvious to anyone who hasn't worked with databases enough to understand primary keys et al. So, for those of you wondering why moving servers would cause problems with entry numbers, here's the short version.
When you add a post in Movable Type, it turns the post into a record in a database table, and the database software automatically assigns that record a unique (auto-numbered) ID. That happens whether it's a draft or a published post. If you later delete a post--draft or published--that ID number does not get "freed up"--the database software will autonumber from where it left off, without filling in the holes.
Similarly, if you're maintaining more than one MT blog on your server--for example, I have mamamusings, some class blogs, and some special-purpose blogs--all blog entries go into the same database table. So if I post an entry here that's numbered 225, and a student then posts to a class blog, the student's post will be numbered 226.
As a result, many (if not most) MT blogs have entries that are not all consecutively numbered. (Look at your own MT blog if you have one. Are the entries all consecutively numbered? Probably not.)
If you want to move your blog to another server, MT provides an export function that dumps out all your entries. But that export doesn't include record numbers. When you then import the entries at their new home, they'll be assigned unique ID numbers by the database software again--and those numbers will probably be different. So simple automatic redirects -- from oldserver.com/000100.html to newserver.com/000100.html -- won't work. You'd have to figure out exactly what the new number was for each entry, then hand-code the redirection. Blah.
Shelley offered me a good solution for preserving the numbers--which I tested today, and it worked. She suggested that instead of using MT's export and import functionality, I export and then import directly using the mySQL database that stores my posts. Doing that does preserve the record numbers. However, it also presumes a fairly sophisticated level of understanding of databases. While I could do it, I wouldn't recommend it for most folks.
Because I was able to preserve my entry numbers, I could conceivably do a simple redirect from oldserver/entry.html to newserver/entry.html. But I like the idea of switching now to name-based entries so that any future moves (say, to a new hosting provider) are less stressful.
If I stick with numbered entry archives, and decide to switch mamamusings.net to a new provider, I've got to go through the more laborious procedure of moving the database in toto from the old server to the new. If I go with named entry archives, I can use the MT export/import without risk of broken links.
And now, I think, it's nap time.