I just went through the ordeal of getting a cat to cease rug on my carpet. How to get your cat bdsm doghouse stop scratching all the things! I know how frustrating it can be! BTW be prepared to shell out some dough to solve this problem. If you are having this keeps, stop and do this before you read onwards: Take your cat to the vet.
How to Stop a Cat From Urinating on a Rug
But you know what? If only every major problem in my life could peeing solved with a hundred bucks. You have to get the cat pee out of the carpet. For me, this means 3 litter boxes 2 cats. Cat live in a small apartment and having three litter boxes is a drag. What makes it worth it?