Mezuza on a Garden Gate

Question: Our front gate stands between two brick pillars, while our side gate into the back garden has a wooden arch. Do both gates need a mezuza ? Answer: The Gemara (Yoma 11a) teaches that the gates of courtyards, as well as those of houses, require a mezuza . The Shulchan Aruch (YD 286:1) rules accordingly. A garden, however, is different. Rambam (Mezuza 6:7-8) and the Shulchan Aruch (YD 286:7) write that a garden is exempt, as it is not made to live in, unless a house opens onto it. Rambam adds that for this reason a gate leading from a garden to a courtyard requires a mezuza . The Aruch Hashulchan (YD 286:34) explains that, according to Rambam, it is obligated because one must pass through it to reach the house. There is a machlokes regarding a side gate leading only into the back garden. According to Rambam, as explained by the Aruch Hashulchan, it would be exempt. However, the Taz (YD 286:7) writes that according to the Tur even a garden is obligated miderabanan , and ...