Sex and uti

What steps can you take in preventing a uti or bladder infection after sex? I get them all the time from sex. I pee after sex, I take a shower afterwards and I still get them.