Rules of the ice hockey have changed over the time and still the rules that are valid nowadays (2010-2014 period) will be probably slightly changed for the next period. Moreover, there is not only one version of the rules, e.g., icing in the NHL and in the International games.
Halifax Rules and Montreal Rules
The first rules of the ice hockey (we mean the ice hockey in the form similar to the current ice hockey) were published by James George Aylwin Creighton (see the photo on the left side) on the February 27, 1877 in The (Montreal) Gazette. These rules are called Montreal rules (or McGill rules) and they developed from so-called Halifax rules which were in use around mid-1800s. As you can expect, these rules differ a lot from the current rules.
Actual IIHF Rule Book
For the years 2010-2014 the IIHF Rule Book is valid. The IIHF Rule Book has more than 100 pages and it describes all details of the ice hockey (see the IIHF Rule Book in the PDF format).
Ice Hockey Rules
Nowadays, you can find in this section