Having sex with a uti

So I recently had a uti, I thought I had gotten rid of it. I had sex last night and the symptoms are back...how can I get rid of it?