Shaving down there

Everytime I try to shave for swimming so my hair down there won't show in my bikini, I always get this horrible rash that's not even close to better. How should I safely and property remove that hair?