Best way to get rid of razor bumps?

Whenever I shave my legs (or down there) I get horrible bumps, is there a good way to prevent or help this?