UTI antibiotics 500 mg?


So I went the the ER for some bleeding and they said I had a UTI. They prescribed me 500mg of cephalexin 2x daily for 7 days. Isnt 500mg too much? I heard 250 mg is the norm for pregnant women. Anyone else take this?