Back pain

Hey ladies so I'm 30w1d and this started yesterday but I'm walking up with really bad lower back pain it goes away once I'm up and moving but the first little bit is really uncomfortable I'm thinking my body is over the sleeping position I've been in for basically 30 weeks but does anyone have any advice on help while I'm sleeping and once I get up as well for the first little bit until it goes away?