Don't wear tight pants -- particularly during sports activities. Wear loose clothing, especially if you sit for long periods of time. Wear boxer shorts at all times. "Of course, they just don't ...
Boxers are the loosest, which lots of men find comfortable but makes them more likely to bunch up under your pants. Within any category, however, there will be variations on cut, seam placement ...