How can I prevent myself from having folliculitis again?

Folliculitis. Where is it and has it been diagnosed as bacterial, yeast or neither? The answer depends on where and what type it is.