To treat or prevent?
Treat with Desitin. It's a product made for diaper rashes; you can find it at any supermarket.
Prevent with any number of products. I used to use Qoleum, but the woman who made it decided to stop for some reason or other. Now I use Chamois Butt'r. Both work fine for me.