kwc.org Photos Spare Cycles MythBusters

Graceful MovableType-generated .htaccess solution

Here's a good feature request from a.wholelottanothing.org with solution by Brad Choate. Tools for future-proofing MT | A Whole Lotta Nothing

Background for Movable Type users who may not understand the problem being addressed: MovableType doesn't include the IDs for your entries when you export them. If your database crashes and you try to reload it using your last MovableType export, all of the URLs for your entries are likely to change. meta and I have both had this problem -- she had it when her BerkeleyDB got corrupted, I had it when I moved to mysql. (MySQL users are a little bit more protected because they can do a database dump instead of exporting from MT).

One way to guard against this is to modify your MT settings so that it uses better URLs for your entries. Instead of naming an entry "000123.html", which is based on the entry ID, you can name it "04_07_04.entry_title.html", which "future-proofs" it against database issues.

TrackBack

Listed below are links to weblogs that reference Graceful MovableType-generated .htaccess solution:

» Site URL reorganization from BP's Weblog
Thanks to ken's mentioning of this nice .htaccess trick, I finally got around to changing my old crappy URLs to these new much nicer ones. All your old links, were there any, should work fine. Well, at least until I... [Read More]

Post a comment


tags.

related entries.

what is this?

This page contains a single entry from kwc blog posted on April 7, 2004 5:07 PM.

The previous post was Style Invitational 540-547.

The next post is Woohoo!.

Current entries can be found on the main page.