Drink water, water, water, and more water. (Goal = very soft stools). I've always had them, but they got worse during pregnancy. (To the point that the docs and nurses at delivery were like, "oh wow, we'll give you something for those!" HA - they didn't really bother me, just made it hard to clean up.)
Anyway - a lot of water has helped me a lot more than medicine or topical treatment. They are almost gone, which, again, is significant as I am pretty sure I've had hemorrhoids for _years_ and years, without pregnancy.