For those we lost, We will not forget 09/11/2001 “Our God given unalienable rights are given to us all as individuals. They tell us what me may do for ourselves, and they are the embodiment of liberty. The so-called rights that government gives to some of us are parcelled out to select groups as classes. They tell us what one class of people may require another to do for them, and they are the very essence of slavery.”
— Perri Nelson, February 9, 2010

A bheil Gàidhlig agaibh?

URL Rewriting code finished


Published Tue, Jan 2 2007 9:45 AM
Technorati Tags: Software Development, Blogging

I've finished working with the URL rewriting code for a while.

The permalink format has been changed. If you link to a post using the old style permalink, the user's browser will be redirected to the new permalinks, so references to old posts should not be broken.

The new style permalinks are based on the year, month, and day of the post, as well as the post identifier. For example, this post's permalink would be http://perrinelson.com/2007/1/2/355.aspx (Sorry, without more control over the IIS configuration of my website I can't get rid of the ".aspx" there).

The permalinks are hackable now too. What that means is you can strip off path segments and still have a valid URL. For example, http://perrinelson.com/2007/1/2 will bring up a page with all of the posts for today, and http://perrinelson.com/2007/1 will bring up a page with the dates and titles of all of the posts for January, 2007. The titles of the posts will be links to the actual posts. That should make it a lot easier to find a post in the archives.

You can also strip off the month part of the path. That will bring up a page with a link for every month that posts are found in the year. After each link will be a count of the number of posts for that day.

Let me know how you like the new feature, and if you find any bugs in it, please let me know about them in the comments as well.


Trackback URI for this post: http://perrinelson.com/track.aspx?postid=355
Permalink URI for this post: http://perrinelson.com/2007/1/2/355.aspx


Subscribe to this entry's comment feed. (Atom)

Delicious Bookmark this on Delicious 

Comments to this entry are closed.

View Perri Nelson's profile on LinkedIn I'm a proud friend of Israel! Are you? Republican National Committee