Pardon the dust

Posted on May 24, 2005 
Filed Under Uncategorized

I’ve just reorganized (rebuilt) the files on my blog. I used to file them based on category, then name. That was fine, but then I realized that I was getting two entries pointing to the same file because the titles weren’t original enough. I was cutting off after 10 characters…so “Weight Watchers Core Plan” was filed in the same place as every other entry that started with “Weight Watchers” in the same category.

I could have used more characters in the file name, but that still would require a complete rebuild and it’s no guarantee the issue wouldn’t pop up again. Instead, I’m now using the default archive template in Movable Type which files as year/month/entry\_name. I would have done this from the beginning, but when I started this blog Movable Type filed entries by ID# which was unacceptable so I changed to the category method and just kept it going through version upgrades. I still may have posts with similar titles, but the default is smart enough to number the entries…duplicate\_name1.php, duplicate\_name2.php, etc. to avoid duplication. The archive template I was using before wasn’t and there’s no setting I can find to avoid this duplication. I’d call that a bug, and I should probably report it when I get a chance.

I haven’t deleted any old files, and the master and category archives are still in the same place. So if you’ve linked to a page the page is still there. You can even comment on an older page and it will appear on the new one. At some point, I will probably figure out some .htaccess magic so I can delete the old pages and have them redirect. It’s not straight forward because there’s no formula I can use that says “file that used to be here is now there.” I would have to use search to find the correct file based on the file name, and because of the duplication issue that won’t always work either.

Comments

Leave a Reply