Uti help

Al

I did my usual pee in a cup routine at the doctors. It came back that I have an UTI. It doesn’t feel like it but I’m going to take the antibiotics proscribed to knock it out. However anytime I take antibiotics I get a yeast infection. What can I do to prevent this from happening. And what can I do to prevent uti from happening again.