Remove all furniture from the top of the rug.
Run a hot bath and hang your rug over the shower rod or a towel rack. Close the doors and windows in your bathroom and let the steam flatten the bubbles for 20 to 30 minutes.
Place the rug outside on a warm, sunny day. Allow it to be exposed to direct sunlight for two to four hours, or until the rug is flat and dry.
Carry the rug back inside and turn it upside down. Place long strips of carpet tape on the edges of the carpet and one strip in the middle.
Flip the carpet over and place it into position. Walk over the entirety of the rug to create a lasting bond between the tape and the underlying floor.