Once urine soaks through and saturates the subfloor, getting the smell out usually requires replacing the subfloor. You can soak it in whatever concoction you want--once pee gets that far in, there is no getting it out.
Before bad aim or a potty accident (human or furbaby) makes your house reek of piss...
Carpet Blot up as much urine as possible. The more urine you can get out before it dries the easier it will be to remove the odor. Rinse with clean warm (not hot) water and blot dry. Sprinkle baking soda over affected area and let dry. Meanwhile...go buy an enzyme cleaner specifically for urine. Vacuum dried baking soda from carpet. Spray pee affected area with enzyme cleaner as directed. You may have to pull up the carpet and treat the carpet padding as well. Without the enzyme cleaner-it is always going to smell of pee-pee. Always.
Floors and Around the Toliet You can bleach or use toliet bowl cleaner on it every day and still not get that lingering potty smell out. See also: Bleach is not a cleaning product
Enzyme cleaner. For Urine. Accept no substitutes. Saturate well-let dry. Lather rinse repeat as needed for urine on regular floors and around the toilet. Always always always test any new cleaning product/enzyme treatment in an inconspicuous spot to ensure it isn't going to cause damage to your floors/carpet/upholstery.
When all else fails-call a professional. Better to spend a few hundred to get rid of a urine odor issue than a few thousand replacing flooring.