Not only will a vinegar and water solution eliminate urine odor if your dog has already peed on the rug, but it will also deter them from urinating on the same carpet again. The acidic smell of vinegar is known to repel dogs from peeing on area rugs as they do not like the smell of vinegar.