Another UTI!!!

I don't know why, but recently I've been getting a UTI after having sex with my husband. I've gone to the doctor and he recommends to go pee after intercourse, however it's not helping. Does this happen to anyone else, if so any suggestions as to what I may do to help from happening?