the rash discribed by you looks like fungal rash
this is quiet common in diaper area. it has spread in your case to legs.
what you need to do is to apply antifungal powder(mycoderm C) 3 times a day, keep the area dry as much as you can. avoid use of steroidal cream.
can show to a pediatrician
for expert advise.