I, too have very bad back/rib pain, especially when I've had a cold & done excessive coughing.
I also find, as weird as this sounds, that when I wear jeans or pants that are too tight, my back hurts then too.
A hot bath, like someone mentioned & and also a heating pad (not at the same time-lol) helps some. I hope your pain lessens soon<img src="i/expressions/face-icon-small-smile.gif" border="0">