The rubber ring fused to the carpet is a separate part from the shifter boot. If you lift your carpet, the shifter boot should stay in place, whilst the rubber ring will stay attached with the carpet.
The bottom (widest part) of the shifter boot is simply stretched around the plastic base underneath. Replacement is easy once you remove the shifter knob.