One of the easiest ways to prevent your sweat glands from becoming infected is to keep your skin clean. This removes the excess bacteria and sweat that causes miliaria. Likewise, it helps to observe proper hygiene when shaving body parts with high concentrations of apocrine sweat glands, such as armpits or the groin area. Shave with the grain of the hair, not against it, and wash the area immediately after shaving. Keeping your razor clean and sharp also helps reduce the tiny that can lead to infection [source: AOCD].
Other simple steps can help prevent miliaria: If you're going to spend time in hot, humid environments, make sure your skin can breathe by wearing loose, breathable clothing. And try to intersperse time in the heat with time in a cool place, giving your body temperature a chance to drop and your sweat glands a break from cooling your skin [sources: Baker, O'Connor].
If you have a history of apocrine sweat gland infections, you can reduce the chance of a flare-up by avoiding tight-fitting clothing; chafing can lead to new infections. And some research suggests that losing weight, while not a cure for chronic infections, appears to help reduce the frequency of infections like hidradenitis suppurativa [source: Kineston].
Sweat gland infections are no fun. Between the itching, pain and potentially embarrassing rash, they can be a major health problem for the people they affect. But arming yourself with knowledge about what causes them, and how to prevent them, can reduce the amount of time you spend dealing with these uncomfortable skin conditions.