Buy double-sided carpet-and-rug tape. Different tapes are formulated for different surfaces, so make sure the one you choose will not damage the floor beneath your rug.
Clean the floor where your rug will go. Grit or dirt on the floor will hamper the tape's performance.
Place the tape around the perimeter of the bottom side of your rug.
Stick the rug to the floor where you want it to go. Most tapes for use with wood or tile floors can be repositioned, so you can adjust the placement if needed.
Buy a nonslip rug pad in the same or a slightly smaller size than your rug.
Clean your floor before putting down your rug pad. A pad placed on top of a gritty floor could scratch it.
Place the pad where the rug will go and put the rug on top.
Use scissors to trim any padding that is visible around the edges of the rug.