g1smd - 7:31 am on Jul 21, 2011 (gmt 0)
Blocking specific endings is very easy. You specify a "wildcard" for the beginning and then the unique string to block.
For the other examples, remember that
robots.txt matches "from the left" so you need to specify enough of the URL to match what you want to match and not match what you don't want to match.
will block both
will block only
However, the 301 redirect is preferred as that will also preserve some PageRank. It also stops further proliferation of the incorrect URLs being copied and paste to new links.