UTI or period blood??

Steph

hey ladies so I thought my period ended 2 days ago but today I started showing symptoms of a UTI and when I went to the bathroom to try to pee there was blood in my underwear/on the toilet paper i think the blood was just blood from my period? but it also hurts to pee.. I guess what I'm asking is can a period cause UTI pain symptoms (it hurts to pee & its sore) or do is it just a UTI that's bleeding??? how can I tell ? thanks xx