Firstly you will need to take care to see that your stools do not become very hard. Do a regular exercise. Have lots of fruits and vegeatables in your diet. Take a fiber supplement on a regular basis. Take plenty of water. If you have not got yourself examined till date about the diagnosis of piles, then get it done. Also try sitz bath which helps in reducing the pain.
1 Doctor agrees with this answer