This will help in getting rid of creases so that the maximum surface area sticks.
How to keep a throw rug from slipping on carpet.
Stretch out your carpet.
If you already have a rug attach your own slip proof material to the back.
The taller the pile the more chance of this movement to occur but if the pile is very dense then the sideways movement can be reduced.
Apply the tape around the perimeter of the rug about 2 inches from the edge and then palace a few strips along the center for extra security.
Alternatively try rug anchors or pins.
If you search online for how to keep rugs from sliding you may find recommendations for using silicone caulking or hot glue on the bottom of rugs.
Unroll and leave out to stretch in the room you wish to place it.
Sticky tape will hold the rug but it will also collect dirt dust and debris eventually losing its adhesive qualities.
Stick double sided carpet tape to the underside of the rug.
Stick the tape on the sides of the carpet.
Placing a nonslip pad under your area rug will help keep it in place and minimize the stretching that occurs when an area rug is on top of carpet.
Measure the length and width of your area rug.
Roll out half of your carpet leaving the back of the carpet exposed.
Carpet will always move in one direction when compressed so when a floor area rug or door mat is placed on top and walked on the pile of the carpet moves sideways usually making the rug move with it.
Silicone caulking or hot glue.
The dried glue is grippy keeping the rug in place.
The tape will stick to both the carpet and rug to prevent slipping.
If you re buying opt for a rug with an anti slip backing.