How to replace a sliding glass door and some of the problems you may run into. Such as wood rot and termites. You may have to call a professional to determine if you have a live infestation of wood boring insects. Replace the damaged wood as much as possible and clean up and treat the infested or rotted area.