UTIs are diagnosed through a urine sample, which is tested for the presence of bacteria, white blood cells, and red blood cells. Treatment typically involves a course of antibiotics. It's essential to complete the entire prescription to ensure the infection is fully eradicated.