The code NYTimes.com used to use for deep linking is open source.
Here is a link to the source code directly, hosted on github.
Here is a link to the source code directly, hosted on github.