For urine in carpet Mix 1 tsp. Dawn dish liquid, 1 tsp. of baking soda and 16 oz of hydrogen peroxide together. Pour directly onto the urine spot. Do not blot, rub or dry. Let it dry naturally and then vacuum over. There will be a noticeble white powder residue on top of the carpet.
It works.
This is also the same thing to use to remove skunk smell from dogs and if it can do that it can work on urine too.
Heres a site on it on using on dogs,we used it on our hunting dogs before.
Skunk Odor Removal - How to Get Rid of Skunk Smell