Those can work, but I specifically chose not to suggest them because I have tried them and found them bothersome. It is too easy to find yourself with a corner of the rug flipped back to expose the rug mat underneath, especially if you have children and pets in the house.
A one-piece solution works better for me; which means that I would have purchased a rug with a non-skid backing in the first place - but since ccraig asked how to transform an existing rug, I gave a suggestion that should work. It requires very little cash outlay and minimal effort - if you can sew on a button, you can sew a jar ring to the back of a rug.