New Local site created from archive not working

hi there.
I downloaded a backup I had on the live flywheel platform which contains most of our building tools. From this point, I downloaded it and created a LOCAL site from an archive (which is the backup that was downloaded). The problem that comes this time is that when I access the wp-admin for the local site, it keeps redirecting me to the live flywheel site.
Any ideas on how I can fix this?

Hi Jo,

Sorry for the delay!

It sounds like some occurrences of the old domain wasn’t changed. To fix this I would recommend running search-replace with WP-CLI

Here’s how you can run the search and replace with WP-CLI in Local:

  1. Right-click on the site in Local
  2. Go to ‘Open Site SSH’
  3. Enter wp search-replace '//' '//' ( being your live Flywheel domain and being your Local site domain)
  4. Done!

Hi Clay.
Just tried your fix. Unfortunately, still not working with this code:
wp search-replace ‘’ ‘’

Any further ideas?
Thank you!


Is it only redirecting in the admin or does it on the front end as well?

Only admin

Hi Joao,

Sorry for the delay getting back to you.

Does this issue persist even after disabling all plugins?