g1smd - 12:21 am on Aug 1, 2012 (gmt 0)
Actually, what the $1 does do is
... nothing. In the example code $1 never has a value, and should be removed.
Additionally, the canonical URL for the root page of the site is www.example.com/ with a trailing slash. Do not forget the slash.