Try a enzyme based cleaner that you can get from the pet strore. Clean the carpets with the seam cleaner, wash the cleaner out real good, and use the enzyme based cleaner in the machine.. Here is a article with more information:
But, if the urine has seeped through to the padding, you need to remove and replace the padding. It cannot be cleaned like carpet with the enzyme based cleaner.
http://www.networx.com/article/how-to-get-ri...