.htaccess
September 28, 2004 1:46 PM
Subscribe
As a followup to my previous
.htaccess question, I have another. This one appears to be harder. [I explain my blunderings inside]
In converting my weblog around into a nicer format, I'm trying to play nice with old entry titles. I thought I had a foolproof system going before, but now I realize it was asinine. I have a horror show that combines the 4-digit year, the 2-digit month, the 2-digit year, month, and day -- and then the entry title dirified and trimmed -- and then the entry id.
http://www.my.webpageurl.com/content/weblog/YYYY/MM/YYMMDDthe_first_twenty_chaENTRYID.php
Oh, the madness.
Is there a slick little command that would redirect all links in this format (the /content/weblog/ is a dead ringer) to something like this:
http://www.my.webpageurl.com/archives/YYYY/MM/DD/
That way, it would at least hit the daily entry.
I promise I won't be this silly in the future.
posted by jmevius to computers & internet (4 comments total)
posted by yerfatma at 2:07 PM on September 28, 2004