My 6 month old has her second UTI: Advice?

Hey ladies! I have a 6 month old girl who’s on her 2nd uti! Wtf am I doing wrong?! I am extremely careful with cleanliness and specially being someone who’s experienced them in the past, am aware of front to back etc etc everything I’m aware of, I do to keep bacteria away… the Dr has said, next one (if in next 6months) will be referral to specialist.Has any 1 had similar experience?Or advice?And before anyone asks… no, I don’t believe anything “dodgy” is going on.Thanks for reading