Drinking plenty of fluids helps flush bacteria from the urinary tract. Avoid alcohol or caffeine until your infection is gone.