Question: who sang the song if you're going to san francisco
Answer: `` San Francisco ( Be Sure to Wear Flowers in Your Hair ) '' is an American pop music song , written by John Phillips of The Mamas & the Papas , and sung by Scott McKenzie .