Healthy lifestyle. Stay active. No high heels. No tobacco - tobacco is associated with higher risk for pain and also prevents injuries from healing. Avoid being overweight. Avoid prolonged sitting. Healthy diet. Exercise...Doesn't have to be intense to be effective. Emotional health - psychological problems can contribute to pain.
Core strengthening. Stay in shape, especially your abdomen and the muscles of your low back. Do not focus on crunches exclusively - movements with a rotational component are also important. Learn to lift from your knees. Despite all of that, some things happen that are outside of your control.