<?xml version="1.0" ?>
<rss version="2.0">
	<channel>
		<title>Keith's Weblog: Comments on &quot;I'm about to update my weblog URLs&quot;</title>
		<description>Keith's Weblog: Comments on &quot;I'm about to update my weblog URLs&quot;, posted on May 23, 2003</description>
		<link>http://keithdevens.com/weblog/archive/2003/May/23/UpdateWeblogURLs</link>

		<category>This website</category>
		<language>en-us</language>
		<image>
			<link>http://keithdevens.com/weblog</link>
			<title>Keith Devens .com</title>
			<url>http://keithdevens.com/images/kbd.gif</url>
		</image>

		<item>
			<title>by Reverend Jim</title>
			<link>http://keithdevens.com/weblog/archive/2003/May/23/UpdateWeblogURLs#comment2105</link>
			<guid isPermaLink="false">http://keithdevens.com/weblog/3901#comment2105</guid>
			<pubDate>Fri, 23 May 2003 22:32:04 +0000</pubDate>
			<description>&lt;p class=&quot;st-markup&quot;&gt;Will old links be broken?&lt;/p&gt;

</description>
		</item>
		<item>
			<title>by Keith</title>
			<link>http://keithdevens.com/weblog/archive/2003/May/23/UpdateWeblogURLs#comment2106</link>
			<guid isPermaLink="false">http://keithdevens.com/weblog/3901#comment2106</guid>
			<pubDate>Fri, 23 May 2003 22:43:44 +0000</pubDate>
			<description>&lt;p class=&quot;st-markup&quot;&gt;No, old links will just be (permanently) redirected to the new links.&lt;/p&gt;

&lt;p class=&quot;st-markup&quot;&gt;It's kind of funny, actually... I have a script in my CMS that does nothing but translate from old weblog URLs to their replacements, since I've changed URL formats so many times.&lt;/p&gt;

</description>
		</item>
		<item>
			<title>by Buddha</title>
			<link>http://keithdevens.com/weblog/archive/2003/May/23/UpdateWeblogURLs#comment2107</link>
			<guid isPermaLink="false">http://keithdevens.com/weblog/3901#comment2107</guid>
			<pubDate>Sat, 24 May 2003 15:13:56 +0000</pubDate>
			<description>&lt;p class=&quot;st-markup&quot;&gt;Couldn't you simply use the simple numeric date system and an incrementor ad the link, a la: 20030524-1 or somethign like it.  I it would remain short and be equally as descriptive as all your slashing and actual month naming.  As far as the actal naming of the post, I am not sure why you would do that if it would be so long.  A solution for that is to simply truncate the string to some manageable number of letters, or remove all articles or some other list of words.  &lt;/p&gt;

</description>
		</item>
		<item>
			<title>by Keith</title>
			<link>http://keithdevens.com/weblog/archive/2003/May/23/UpdateWeblogURLs#comment2108</link>
			<guid isPermaLink="false">http://keithdevens.com/weblog/3901#comment2108</guid>
			<pubDate>Sat, 24 May 2003 16:46:28 +0000</pubDate>
			<description>&lt;blockquote class=&quot;st-markup&quot;&gt;&lt;p&gt;Couldn't you simply use the simple numeric date system and an incrementor ad the link, a la: 20030524-1 or somethign like it.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p class=&quot;st-markup&quot;&gt;I could, but I'd lose the &amp;quot;directoryness&amp;quot;, which is important, because&lt;/p&gt;

&lt;ul class=&quot;st-markup&quot;&gt;
	&lt;li&gt;&lt;a href=&quot;http://www.keithdevens.com/weblog/archive/2003&quot;&gt;http://www.keithdevens.com/weblog/archive/2003&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://www.keithdevens.com/weblog/archive/2003/May&quot;&gt;http://www.keithdevens.com/weblog/archive/2003/May&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://www.keithdevens.com/weblog/archive/2003/May/23&quot;&gt;http://www.keithdevens.com/weblog/archive/2003/May/23&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p class=&quot;st-markup&quot;&gt;All point to different parts of the archive, by year, by month, and by day. By the way, I &lt;em&gt;used&lt;/em&gt; to have a system sort of like that, and of course, the URLs still work... &lt;a href=&quot;http://www.keithdevens.com/weblog/2003-05-23&quot;&gt;http://www.keithdevens.com/weblog/2003-05-23&lt;/a&gt;. But I chose to move away from it.&lt;/p&gt;

&lt;p class=&quot;st-markup&quot;&gt;As for the incrementor, that's just a pain in the ass to implement. To make a post identified by the order in which it was posted that day... I don't like it for a bunch of reasons. I did consider it, and was figuring out how to make it work while at the same time making the post id work (so, /2003/May/23/3901 and /2003/May/23/01 would both point to this post). So... say numbers less than 100 would point to the order within the day, and numbers greater would always represent a post id. But you can't be absolutely &lt;em&gt;certain&lt;/em&gt; that you'll never have more than 99 posts in the day, so you still have to do some checks (not to mention the first 99 posts, though I &lt;em&gt;could&lt;/em&gt; choose to start numbering at 100). Plus, what happens if you delete a post? An ID and name still uniquely represent that post, but the order would change. Unless I stored the order in the database when the post is first saved, but the point is that this is all a pain in the butt &lt;img class=&quot;smiley&quot; src=&quot;/images/smiley_side.gif&quot; alt=&quot;Smiley&quot; /&gt;. For numeric identifiers (as opposed to names), I just went with keeping the ID and forgetting about an &amp;quot;order within the day&amp;quot; identifier.&lt;/p&gt;

&lt;blockquote class=&quot;st-markup&quot;&gt;&lt;p&gt;As far as the actal naming of the post, I am not sure why you would do that if it would be so long.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p class=&quot;st-markup&quot;&gt;Well, everything I do from now on will be short. I'm willing to live with silly long names for old posts. Some are short though. It was really cool to see search engine hits get forwarded from &lt;a href=&quot;http://www.keithdevens.com/weblog/3715&quot;&gt;http://www.keithdevens.com/weblog/3715&lt;/a&gt; to &lt;a href=&quot;http://www.keithdevens.com/weblog/archive/2003/Apr/07/PandaDog&quot;&gt;http://www.keithdevens.com/weblog/archive/2003/Apr/07/PandaDog&lt;/a&gt;&lt;/p&gt;

&lt;blockquote class=&quot;st-markup&quot;&gt;&lt;p&gt;A solution for that is to simply truncate the string to some manageable number of letters, or remove all articles or some other list of words.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p class=&quot;st-markup&quot;&gt;The database only stores names up to 50 chars. That's still very long for names, but I tried to find a number that wouldn't cut off the names for too many existing posts (50 only did 8 posts -- 45 did 18, 40 did 45, 35 did 92, 30 did 197, and 25 did 441). I would have chosen 25 or 30 if I were starting from scratch, I think. But, I think the solution I chose was an ok compromise.&lt;/p&gt;

&lt;p class=&quot;st-markup&quot;&gt;Probably the most important reason for the URL change was &lt;strong&gt;consistency&lt;/strong&gt;. Rather than having all my URLs be /weblog/archive/2003... etc. &lt;em&gt;except&lt;/em&gt; for my posts, now my individual posts are consistent with that too. Plus, fundamentally, weblog posts &lt;em&gt;should&lt;/em&gt; be dated in the URL.&lt;/p&gt;

&lt;p class=&quot;st-markup&quot;&gt;Anyway, that's my rationale.&lt;/p&gt;

</description>
		</item>
		<item>
			<title>by Keith</title>
			<link>http://keithdevens.com/weblog/archive/2003/May/23/UpdateWeblogURLs#comment2109</link>
			<guid isPermaLink="false">http://keithdevens.com/weblog/3901#comment2109</guid>
			<pubDate>Sun, 25 May 2003 02:00:15 +0000</pubDate>
			<description>&lt;p class=&quot;st-markup&quot;&gt;Actually, I just updated all the names again and replaced lots of articles and other common words like you suggested. So, for instance, the name of this post went from &amp;quot;ImAboutToUpdateMyWeblogURLs&amp;quot; to &amp;quot;UpdateWeblogURLs&amp;quot;. Much better.&lt;/p&gt;

</description>
		</item>
		<item>
			<title>by Mean Dean</title>
			<link>http://keithdevens.com/weblog/archive/2003/May/23/UpdateWeblogURLs#comment2116</link>
			<guid isPermaLink="false">http://keithdevens.com/weblog/3901#comment2116</guid>
			<pubDate>Wed, 28 May 2003 12:45:57 +0000</pubDate>
			<description>&lt;p class=&quot;st-markup&quot;&gt;Thanks for the tips -- I'm about to do the same.&lt;/p&gt;

</description>
		</item>
		<item>
			<title>by A.Sleep</title>
			<link>http://keithdevens.com/weblog/archive/2003/May/23/UpdateWeblogURLs#comment2121</link>
			<guid isPermaLink="false">http://keithdevens.com/weblog/3901#comment2121</guid>
			<pubDate>Fri, 30 May 2003 00:44:17 +0000</pubDate>
			<description>&lt;p class=&quot;st-markup&quot;&gt;I just did the same and use /CCYY/MM/DD/ as my index where if just CCYY is given all entries for said year will show, if CCYY/MM is given all entries for said month in given year will show, etc. Works very well.&lt;/p&gt;

</description>
		</item>
	</channel>
</rss>
