New Archive Layout

Some of you may have noticed that this morning I moved the archives around a little bit. While the old way (/archives/000xxx.html) was functional it wasn't very descriptive, or orderly. It also clogged the hell out of the archive directory.

The new system moves the archive pages to a more orderly format (this one will be /archives/2004/4/new-archive-layout) yet forwards the old address to the new. So any old links will still be functional. (for now) Unfortunately it borked the rss feeds. Such is life, I apologized but it had to happen sometime.

More on the technique behind this in read more...

The first thing I did was create a new Archive-Related Template. Following is the template I used for the .htaccess. The other contents of the archive file will allow your archives directory to parse the files as PHP while having no extension. If you simply want them to be parsed as html you can change "application/x-httpd-php" to "text/html".

I then clicked on the Weblog Config > Archive Files and added Archive Type: Individual Archive. In the resulting page I then set that archive to save as .htaccess. Then adjusted the path for Individual Entry Archive to:

<$MTArchiveDate format="%Y/%m"$>/<$MTEntryTitle dirifyplus="pld"$>

This is using the dirifyplus plugin as I wished to have the filenames as word-word rather than word_word. A rebuild of your site should have similar effects.


Comments

User Gravatar
Diva
Apr 25, 2005 5:24 PM
http://www.j00wish.com

Very cool! You’ve been very busy!

User Gravatar
Bane
Apr 26, 2005 8:32 AM
http://www.banemacleod.com/

Went ahead and set up some forwarders for other common urls as well.

User Gravatar
Bane
Apr 26, 2005 9:32 AM
http://www.banemacleod.com/

Hello indeed!

User Gravatar
Audrey
Apr 26, 2005 8:37 PM
http://www.audiedoggie.net

very cool!!