If your right side hurts more towards your back, you may have a type of spinal problem. An x-ray of the entire spine (called a spinogram) can be done to determine the cause. Oftentimes the diagnosis is scoliosis, although right side pain near the spine can also be caused by a problem in the vertebrae.