Has anyone else had BV?

I've had BV (bacterial vaginosis) before and I have it again now. Does anyone now how to keep this from happening??