I just got over one myself, so I know how you feel. It feels like shards of glass are stabbing your urethra every time you pee.
If you are getting reoccurring UTIs, there are a couple questions you should ask yourself: Am I drinking enough fluids to keep urine dilute and flush pathogens out? Am I wiping properly every time I go to the bathroom? If you are sexually active, do you urinate before and after sex?
Cranberry pills and juice has helped a lot of people I know. Some people with chronic UTIs are sometimes put on low doses of antibiotics for months at a time.
I would talk with your doctor to see what options you have. Good luck.