Constipation

Please help my 1 year old is having really really bad constipation shes in pain, shes been dealing with this since 5 months, doctor told me i cant give her anymore meds, what can i do?