Not knocking the suggestion of Body Glide or compression shorts, I've heard they work well.
For me, however, on the occasions when chafing has been a problem, frequent washing and rinsing (2 or 3 times during the day - and definitely each evening) and liberal applications of Gold Bond solved the problem quickly.