I have had this pain under the right rib for years. It feels like a tennis ball is trapped under there. i've had cat scans, MRIs, X-ray, colonoscopy, scope down my throat and have been told all I need is Collace. Along with the rib pain I've lived with terrible gut pain and constipation. I've done extensive reading online to try and find an answer. And I've found it. It's caused by GMO chemicals. The chemicals react with the good bacteria in your gut that normally make compounds your body needs, like vitamins. They compromise their metabolism. The bacteria start creating phenol, which is a poison. The phenol picks up a sulfate molecule which temporary renders it harmless. Once it gets to the liver, right at your portal vein, right under your right rib, your liver takes the sulfate molecule. The phenol becomes toxic and inflames your liver, which causes the pain. If you go gluten free and organic the pain will go away or at least subside. However, it is almost impossible to eliminate GMOs from your diet. First of all food is not labeled for it. Secondly, some form of it is in almost everything. Best bet is to look for non GMO foods. Some of those are labeled. Good luck!