Imported site to Local, Login directed to Live Site

I have read through other posts that seem similar to mine, but not exactly the same.

I created my full site back up with Backup Buddy and then imported the zip file into Local. When I try to log into it, it directs me to the live site URL instead of my local copy.

From reading some other posts, it seems like I need to redirect the login to the local directory, but I do not know how to do that.

Also, is there any documentation that goes with Local?

Thanks,

Hi @rglaser,

For starters, I would check all of the files in the app/public folder for the old domain that it’s redirecting to. You can do this by opening the entire app/public directory in your code editor of choice and then doing a “Find in Project” or similar.

You can also use grep to search the files. Here’s how:

  1. Right-click on the site in the Local sidebar
  2. Go to “Open Site SSH”
  3. Type grep -R "olddomain.com" . (replace olddomain.com accordingly) and press enter … Then, look at the results you get if you get any.

If you see results, fix the files accordingly.


You may also need to check the database for the old domain. You can do so by doing the following:

  1. Right-click on the site in the sidebar in Local
  2. Click on “Open Site SSH”
  3. Enter mysqldump -proot local --extended=FALSE | grep "old-domain.dev" | less -S

Thanks, @clay, I will try again later.

Something funky happened to my live site after I brought a copy into Local. My global fonts aren’t working, one page is not displaying properly, and all the text on my slides from Slider Revolution are bold and can’t be undone. I am running Elementor as a page builder and have no idea what is going on, but all of it started after I put the site into Local and it was trying to access the live site.

I will continue to try to figure out what is going on, but it is frustrating for me. The demo I watched of Local was for creating a local development site and I didn’t realize there was way more to bringing down a copy of my site and testing with it.

Is there a guide or manual or how to somewhere? It seemed so simple, but now so many little weird things are going on.