# I can't access Dev site \> it redirects me to live site

**URL:** https://community.kinsta.com/t/i-cant-access-dev-site-it-redirects-me-to-live-site/1140
**Category:** Bug Reports
**Created:** [November 22, 2021, 11:35am UTC](https://community.kinsta.com/t/i-cant-access-dev-site-it-redirects-me-to-live-site/1140 "2021-11-22T11:35:13Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![dgrueda](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/dgrueda/32/804_2.png) [@dgrueda](https://community.kinsta.com/u/dgrueda)
#### Post date: [November 22, 2021, 11:35am UTC](https://community.kinsta.com/t/i-cant-access-dev-site-it-redirects-me-to-live-site/1140/1 "2021-11-22T11:35:13Z")

</div>

I recently updated to 2.3.0 on Windows, and at first, everything worked as always with my current dev site.

But since I deleted the site to make a pull from staging (creating a new site, since there is no pull feature yet), when I try to access the site it redirects me to the staging site.

So when I try to access to mysite.local, it redirects me to staging-mysitecom.kinsta.cloud.

My etc/host file is correct. I’ve tried to change the site and home URL in MySQL (wp\_options) and it’s not working (although all the links there are pointing to staging, so the replacement seems to not be working).

I’ve deleted everything, including the site and Docker, and installed everything again, creating the site, and still the same issue.

Docker version is 4.2.0

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: [November 22, 2021, 2:49pm UTC](https://community.kinsta.com/t/i-cant-access-dev-site-it-redirects-me-to-live-site/1140/2 "2021-11-22T14:49:25Z")

</div>

Hi @dgrueda! Would you happen to have the URL entered into the `wp-config.php`? There is likely a setting somewhere within WordPress or a file that is causing it to redirect to another URL. Renaming the plugins directory will eliminate any possibility that it’s coming from a plugin.

---

<div class="post-metadata">

### Author: ![dgrueda](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/dgrueda/32/804_2.png) [@dgrueda](https://community.kinsta.com/u/dgrueda)
#### Post date: [November 22, 2021, 3:30pm UTC](https://community.kinsta.com/t/i-cant-access-dev-site-it-redirects-me-to-live-site/1140/3 "2021-11-22T15:30:00Z")

</div>

Hi Michael,

Somehow renaming the plugins directory and renaming it back, worked. Not sure why but maybe something cache-related.

Thanks

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/8/80f8c4e56fecc02327a0964e6bf63a716483529f.png) [@system](https://community.kinsta.com/u/system)
#### Post date: [November 25, 2021, 3:30pm UTC](https://community.kinsta.com/t/i-cant-access-dev-site-it-redirects-me-to-live-site/1140/4 "2021-11-25T15:30:23Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
