Sharp pains in abdomen? 30 weeks

April

I’m 30 weeks and went to the hospital earlier this week for abdominal pain. I had excruciating pain on the right side of my belly button. I thought the pain was from baby pulling on the umbilical cord but the pain felt like contractions. Anytime the baby would kick in that area I would get excruciating sharp pains. I was put on bed rest for 2 days and I’m getting better but I have no idea what could have caused this. Has anyone else felt anything like this?