Constant UTIs

I'm starting to get UTIs every time I have sex. I was in the hospital because one traveled up to my kidney and I got a kidney infection. Does anyone have ANYTHING to help with these? I know to pee afterwords but I can't always.