# Imported site always 301 redirects to live site

**URL:** https://community.kinsta.com/t/imported-site-always-301-redirects-to-live-site/878
**Category:** Application Support
**Created:** [July 23, 2021, 2:13am UTC](https://community.kinsta.com/t/imported-site-always-301-redirects-to-live-site/878 "2021-07-23T02:13:40Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ryanb](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/ryanb/32/611_2.png) [@ryanb](https://community.kinsta.com/u/ryanb)
#### Post date: [July 23, 2021, 2:13am UTC](https://community.kinsta.com/t/imported-site-always-301-redirects-to-live-site/878/1 "2021-07-23T02:13:40Z")

</div>

I’m having an issue where the imported site always redirects to the live site. Two of us on the team are having the same issue. One using OSX, one using Windows 10. I’ve looked at

> [@Imported site redirects to live site for wp-admin login](https://community.kinsta.com/t/imported-site-redirects-to-live-site-for-wp-admin-login/302):
>
> Q: Date/Time this occurred (Provide your time zone also) A: 11:00 AM EST Q: DevKinsta Version A: Version 1.0.1 (1.0.1.1173) Q: OS Version A: macOS Catalina 10.15.7 Q: Docker Desktop Version A: 3.1.0 (51484) Q: Were any error codes or messages observed? If so, what were they? A: No Q: Detailed Description of the Problem A: When I click the WP Admin button in DevKinsta for a site I’ve imported from our live Kinsta site, I am redirected to the WP Admin login page on the live site rather …

which is very similar except this happens even on non-admin pages. I checked wp-config.php for WP\_HOME & WP\_SITEURL and they weren’t there. I even added them to wp-config.php to try and force it to the local site but it didn’t help. I also check the wp\_options table in database manager and all options have been replaced with the local site domain. So I’m stuck.

Any ideas?

---

<div class="post-metadata">

### Author: ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)
#### Post date: [July 23, 2021, 2:25pm UTC](https://community.kinsta.com/t/imported-site-always-301-redirects-to-live-site/878/2 "2021-07-23T14:25:47Z")

</div>

Welcome to DevKinsta @ryanb ! I’m happy to help. It sounds like there’s still something redirecting the site. within the install. You may need to do a Search and Replace on the database. Look for additional references of the live URL using the [Database Manager](https://kinsta.com/knowledgebase/devkinsta/database-manager/). [We have a guide here on how to use Adminer](https://kinsta.com/blog/adminer/#search-data-in-all-the-tables) (though i’m notifying the team here to update the screenshots). Let me know if that helps.

---

<div class="post-metadata">

### Author: ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)
#### Post date: [October 29, 2021, 2:27pm UTC](https://community.kinsta.com/t/imported-site-always-301-redirects-to-live-site/878/3 "2021-10-29T14:27:46Z")

</div>

We haven’t heard back from you on this topic in a while. However, if you do need further assistance you can simply start a new forum thread. Thank you again for using DevKinsta. Let us know if you need further assistance! 👋

---

<div class="post-metadata">

### Author: ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)
#### Post date: [October 29, 2021, 2:27pm UTC](https://community.kinsta.com/t/imported-site-always-301-redirects-to-live-site/878/4 "2021-10-29T14:27:47Z")

</div>


