Keflex (cephalexin) is an antibiotic used to treat urinary tract infections (UTIs). Learn what to expect if you’re prescribed Keflex for your UTI.If your doctor prescribes Keflex to treat your UTI, you’ll likely take the drug at home. Treatment usually lasts seven to 14 days. As with all...