# New Local site created from archive not working

**URL:** <https://community.localwp.com/t/new-local-site-created-from-archive-not-working/1180>\
**Category:** Support\
**Created:** [April 5, 2017, 12:58pm UTC](https://community.localwp.com/t/new-local-site-created-from-archive-not-working/1180 "2017-04-05T12:58:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jopratas](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jopratas](https://community.localwp.com/u/jopratas)\
**Post date:** [April 5, 2017, 12:58pm UTC](https://community.localwp.com/t/new-local-site-created-from-archive-not-working/1180/1 "2017-04-05T12:58:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [April 11, 2017, 3:19pm UTC](https://community.localwp.com/t/new-local-site-created-from-archive-not-working/1180/2 "2017-04-11T15:19:38Z")

</div>

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 '//olddomain.com' '//newdomain.com'` ([olddomain.com](http://olddomain.com) being your live Flywheel domain and [newdomain.com](http://newdomain.com) being your Local site domain)
4. Done!

---

<div class="post-metadata">

**Author:** ![jopratas](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jopratas](https://community.localwp.com/u/jopratas)\
**Post date:** [April 11, 2017, 3:46pm UTC](https://community.localwp.com/t/new-local-site-created-from-archive-not-working/1180/3 "2017-04-11T15:46:02Z")

</div>

Hi Clay.  
Just tried your fix. Unfortunately, still not working with this code:  
wp search-replace ‘[pitchit.flywheelsites.com](http://pitchit.flywheelsites.com)’ ‘master-template.dev’

Any further ideas?  
Thank you!  
Regard,  
Jo

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [April 11, 2017, 6:38pm UTC](https://community.localwp.com/t/new-local-site-created-from-archive-not-working/1180/4 "2017-04-11T18:38:58Z")

</div>

Jo,

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

---

<div class="post-metadata">

**Author:** ![jopratas](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jopratas](https://community.localwp.com/u/jopratas)\
**Post date:** [April 12, 2017, 3:22pm UTC](https://community.localwp.com/t/new-local-site-created-from-archive-not-working/1180/5 "2017-04-12T15:22:56Z")

</div>

Only admin

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [April 25, 2017, 3:10pm UTC](https://community.localwp.com/t/new-local-site-created-from-archive-not-working/1180/6 "2017-04-25T15:10:05Z")

</div>

Hi Joao,

Sorry for the delay getting back to you.

Does this issue persist even after disabling all plugins?

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [August 25, 2020, 6:31pm UTC](https://community.localwp.com/t/new-local-site-created-from-archive-not-working/1180/7 "2020-08-25T18:31:43Z")

</div>


