بسم الله الرحمن الرحيم
May Allah grant you perfect health! Consult any good and expert hakim or doctor for treatment. Be regular in your salah. Salah is not exempted in any case. Tell about the urine infection to some local mufti or alim and know the ruling to perform wudhu and offer salah in this condition. Also, do the following amal:
Recite surah Fatiha 41 times before Fajr salah and blow it on water and drink it. Do it for forty days. Also supplicate for your health after each salah.
Allah knows Best!
Darul Uloom Deoband