Thus, the first step of getting rid of hemorrhoids is staying away from its causes. One way of avoiding constipation is by adding a lot of fiber to one's diet. Some food that are rich in fiber include vegetables such as carrots, eggplants, corn, cabbage, lettuce and fruits including pears