It is recommended to sleep on your back in the first periods after hip replacement surgery. People who cannot get comfortable on their back and those who have had unilateral surgery can lie on their side which doesn’t have a hip prosthesis by placing a pillow between their legs.