A hard cough or sneeze can also cause pain in the space under your right rib cage. Severe or prolonged coughing may occur due ...