Pregnant and pain

I’m almost 34 weeks pregnant and I have just bad rib pain to the point it burns and the pain keeps me up all night. Does anyone know what I can do to get rid of the pain?