UTI will not go away

Jamie
I've had a UTI for 10 days and it will not go away. The doctor prescribed me amoxicillin first and now I'm on Cephalexin. I'm 7 weeks pregnant and I'm in so much pain because of the UTI. I've drank so much water and cranberry juice, I'm eating yogurt. Nothing seems to help. Has this happen to anyone? Any advice?