A regular litter maintenance program should be established. Two or three inches of litter should be in the box at all times. Each box should be cleaned daily. Do not stir the litter because this spreads the odor throughout the box and cats like a clean place to eliminate. The entire litter should be changed and the box washed with soap and water at least weekly.
Cats are most likely to eliminate at certain times, such as after waking and after eating.
At the same time you are making the litter box area as attractive to your cat as possible, you need to make the inappropriate areas as unattractive as possible. First, you need to eliminate any scent that may be attracting your cat. If your cat has been urinating on the carpet for some time, the odor may have soaked through to the floor. In some cases, floor boards need to be replaced, as well as carpeting and padding. Once the area has been cleaned, an odor deterrent may be applied.