Thank you for query in health care magic,
You are mixing two things in one disease,
If you have got piles you do not pass blood in urine,there may be some other problem in your urinary tract
If you have got piles you get bleeding from anal canal
So first you go for confirmation of diagnosis and then treatment.
In piles you avoid constipation
,take mild purgatives at night,avoid fried and junk food,
Take more green veges and salads.
Apply some analgesic
or antibiotic creams.
ok and bye.