Its an idiomatic expression where you got the preposition wrong.
You should try and treat people the same regardless of race, religion or gender.