Urinary Tract Infections

Ever since my boyfriend and I have started having sex, I keep getting UTI's. Peeing afterwards I've heard is supposed to help tremendously but it seems to not be helping at all. My UTI actually ended up turning into a full blown kidney infection. So are there any other ways to help with this or is it something I just deal with if I want to continue to have sex?