Eat a healthy hi fiber diet
, drink plenty of non caffeinated , non alcoholic fluid daily, more if you exercise
by plane alot.
80-100 ounces per day is a good start and go up from there depending on your activity level. Also stop reading on the toilet. Have your bm within 5 minutes or get out and come back when the urge is truly there.