Well, try the steam cleaner from the supermarket. It's a little work, but you'll pull out tons of mud and it may just restore your rug.
You can clean your runners and throw-rugs with it too.
Carpeting is not a boon. It is full of chemicals, holds mold , mildew and dirt.
Don’t steam it. Rip it up and get the faux new flooring that does not scratch
Pergo or something.