Pant rash

So when ever I walk in my leggings I develop a rash and bruising from the seam of my pants and it really hurts amd was wondering if anyone knows how to soothe and stop this from happening