Pets, no pests
Try using an all natural enzyme based cleaning product as an alternative method. The enzymes actually digest the stain and odor causing proteins in the pet urine.
Do not use ammonia or other cleaning chemicals with strong odors on the stained spot, as they do not effectively cover the odor and may encourage your pet to reinforce the urine scent mark.
To discourage a pet from resoiling a previously soiled area, lay a sheet of foil on the spot for a week or two. It will be unappealing for your pet to step on.