Question: how to train a cat to not pee in the house?
Answer: Move the box to a new location. Move it to a location your cat can access easily. If there's a particular spot where your cat keeps urinating, move the litter box to this spot. This could help teach him to urinate in the box. Put a cat's food, water, and toys in the same area but not beside the litter box.