Experienced the same problem this past spring/summer. It was overcome by wearing a different pair of cycling shorts everyday. The practice continued into fall/winter. In addition I use medicated powder on me and antiseptic spray on the shorts
as soon as I would remove them. I think that part's important. Gradually, the condition went away. It's now part of my regular commuting routine. Like topping off my tires.