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?
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:
Just tried your fix. Unfortunately, still not working with this code:
wp search-replace ‘pitchit.flywheelsites.com’ ‘master-template.dev’
Any further ideas?
Is it only redirecting in the admin or does it on the front end as well?
Sorry for the delay getting back to you.
Does this issue persist even after disabling all plugins?