To prevent rugs from slipping on carpet, use a rug pad or gripper underlay beneath the rug. These anti-slip products create friction and keep the rug in place. Alternatively, double-sided carpet tape can also secure the edges of the rug to the carpet.