Depending on size these can be very, very expensive, so you have got to be very confident you can clean this.
Vacuum like mad, back and front, test colours for colour run, prespray, clean with a neutral/acidic cleaner, and dry with turbo as fast as you can.
This should stop any problems. Rug are easy to clean if you know what you are doing, but it when it starts to go wrong them you are in big trouble. As Barry has mentioned in other posts