The answer to 'how to replace rewiring' is to completely replace the electrical wiring in your home. This involves removing all existing wiring, outlets, switches, and electrical panels, and installing new wiring, fixtures, and electrical components throughout your home. Rewiring is a complex and potentially dangerous task that should only be attempted by a licensed and experienced electrical contractor.
Rewiring is typically recommended every 20-40 years, depending on the age and condition of your home's electrical system. Signs that it's time to rewire include frequently tripping circuit breakers, outdated or unsafe wiring, and a lack of sufficient electrical capacity to power modern appliances and electronics. A professional electrician can assess your home's electrical needs and provide a comprehensive rewiring plan.