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?
Regards,
Jo
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:
- Right-click on the site in Local
- Go to ‘Open Site SSH’
- Enter
wp search-replace '//olddomain.com' '//newdomain.com'
(olddomain.com being your live Flywheel domain and newdomain.com being your Local site domain) - Done!
Hi Clay.
Just tried your fix. Unfortunately, still not working with this code:
wp search-replace ‘pitchit.flywheelsites.com’ ‘master-template.dev’
Any further ideas?
Thank you!
Regard,
Jo
Jo,
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?