Sore glans penis. Pain in shaft of penis. Pain in anus when ejaculating. Slight pain in rectum that comes & goes. Urinating frequently. 2 UTI in 6 mon?

Poss viral infection. These symptoms suggest infection. If your urine infection was actually cured, then worry about viral infection like herpes or atypical bacterial infection like mycoplasma or chlamydia. Check with your doctor. All of these are treatable.