On occasion I'll get a stitch in my side while running. Unfortunately, I'm almost always 2 or 3 miles from home, so it's important that I am able to run through it.
What I have found works for me is to press with my hand very firmly on the area that hurts and exhale all the breath out of my lungs. Then inhale and press again, releasing the air again. Doing this twice usually works.