The pain under your rib cage may be results of a hiatal hernia. Hiatal hernia is usually caused by a small hole or opening in your diaphragm. Some part of your inside organs, likely your stomach, pushes against the opening like it is trying to get inside. This action cause pressure on the opening and just enough pain to bug you. My hiatal hernia just stopped one day without any notice. I later figured it out that the pain stopped because I lost about 20 pounds.
I have maintained great bowel movements and no constipation for 5 months since taking digestive supplements called Theralac. It took me 5-6 days to rearrange my bowels to flow smoothly, and I have at lease two bowel movements a day. Go to website, www.theralac.com, and read their advertisement for Theralac. Good Luck!
Harrald
I would visit your doctor to get some basic tests. It may be something simple such as IBS causing pain. If you develop more symptoms or constant pain then I would worry a little more.