Diet changes to prevent constipation, again exercise and important to avoid standing for long periods of time. Creams such as anusol and scheriproct may be advised and helpful.
However if you find that the haemorrhoids or piles are severe and thrombosed then discuss with your Doctor as he may refer you for a small procedure to alleviate this problem.