If it's acute, rest for the first 1-2 days.
This controls your symptoms and reduces any swelling in the area of pain. Apply heat or ice to the involved area. In general it is a good idea to use ice for the first 2-3 days, then use heat. while sleeping, try lying on your side, curled up with a pillow between your legs. When sleeping on your back, place a pillow or rolled towel under your knees.