# Cannot access local dev site

**URL:** <https://community.kinsta.com/t/cannot-access-local-dev-site/1468>\
**Category:** Application Support\
**Created:** [May 9, 2022, 7:34pm UTC](https://community.kinsta.com/t/cannot-access-local-dev-site/1468 "2022-05-09T19:34:25Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![natasha\_nightshift](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/natasha_nightshift/32/652_2.png) [@natasha\_nightshift](https://community.kinsta.com/u/natasha_nightshift)\
**Post date:** [May 10, 2022, 6:38pm UTC](https://community.kinsta.com/t/cannot-access-local-dev-site/1468/21 "2022-05-10T18:38:35Z")

</div>

☹ I cancelled, and renamed again, still same issue.

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)\
**Post date:** [May 10, 2022, 6:49pm UTC](https://community.kinsta.com/t/cannot-access-local-dev-site/1468/22 "2022-05-10T18:49:49Z")

</div>

Okay, just to simplify things let’s forget renaming for now and go back to the original issue. There’s a new version of DevKinsta coming out soon that may resolve this.

Did you try opening your .local address in a different browser/incognito? Does it still redirect?

If you check the database, are the site\_url and home\_url in wp\_options showing the .local address?

 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/1/1204ed32500237fe5da9dd6b3b45f8f5e3bf2066.png)

If you are being redirected to the Staging URL, the URL must be present somewhere. If it isn’t being cached in your browser, then it must still be in the database or the site files.

---

<div class="post-metadata">

**Author:** ![natasha\_nightshift](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/natasha_nightshift/32/652_2.png) [@natasha\_nightshift](https://community.kinsta.com/u/natasha_nightshift)\
**Post date:** [May 10, 2022, 7:21pm UTC](https://community.kinsta.com/t/cannot-access-local-dev-site/1468/23 "2022-05-10T19:21:57Z")

</div>

Not sure how to even check the database, because I can’t access anything, because I’m stuck in a loop.

I cannot cancel the renaming, and so it won’t allow me to do anything.

(And yes, I checked the local URL in incognito - no luck)

 ![Screen Shot 2022-05-10 at 3.21.16 PM](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/b/b4f81a6b66a30b5e751750f64b96c5a73665c2b5.jpeg)

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)\
**Post date:** [May 10, 2022, 8:51pm UTC](https://community.kinsta.com/t/cannot-access-local-dev-site/1468/24 "2022-05-10T20:51:42Z")

</div>

Oh sorry, I though it eventually got past that state.

If cancelling isn’t working, you can force clear the running state by editing your config.json file. I’ve explained it [here](https://community.kinsta.com/t/stuck-on-canceling-maintenance-restore-snapshot/1362/7).

On Mac, config.json should be in the **User/Library/Application Support/DevKinsta** folder

---

<div class="post-metadata">

**Author:** ![natasha\_nightshift](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/natasha_nightshift/32/652_2.png) [@natasha\_nightshift](https://community.kinsta.com/u/natasha_nightshift)\
**Post date:** [May 11, 2022, 7:40pm UTC](https://community.kinsta.com/t/cannot-access-local-dev-site/1468/25 "2022-05-11T19:40:53Z")

</div>

Hi Kevin,

I checked the database and it shows the local url, but yet still points to staging…

 ![Screen Shot 2022-05-11 at 3.39.48 PM](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/6/613fab76941395864644aa29ef06ebb3abf3808b.png)

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)\
**Post date:** [May 11, 2022, 9:15pm UTC](https://community.kinsta.com/t/cannot-access-local-dev-site/1468/26 "2022-05-11T21:15:25Z")

</div>

Huh, this really doesn’t make sense. It feels like it has to be coming from your browser then since there’s nothing in the database or your files that should send you back to Staging.

Can you use [Chrome DevTools](https://developer.chrome.com/docs/devtools/open/) to see what the headers on the redirect are?

You need to open a brand new window → open DevTools → click on the Network Tab and tick the “Disable Cache” box

 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/c/c149fa2a659d798010f297aa47bb704c4213ffd9.png)

Now navigate to your .local address in the browser. If it still redirects you’ll see something similar to this

 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/3/3390537b0784b9510c53d951653c156f67b64716.png)

Click on the the request that has a 302 or 301 status and look at the response headers. If you can screenshot those response headers it will at least give us some idea of where the redirect is coming from.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/6/68109d13b30e53aa9719a09dcd26768999f79156.png)

---

<div class="post-metadata">

**Author:** ![natasha\_nightshift](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/natasha_nightshift/32/652_2.png) [@natasha\_nightshift](https://community.kinsta.com/u/natasha_nightshift)\
**Post date:** [May 12, 2022, 1:29pm UTC](https://community.kinsta.com/t/cannot-access-local-dev-site/1468/27 "2022-05-12T13:29:03Z")

</div>

oh sweet baby jesus, it’s working. I shut my machine down last night after work, so perhaps that really forced the cache to clear. (I swear I was doing incognito/private browsing yesterday!!!)

I feel totally crazy, but happy it’s now working. Appreciate your support. 🙏

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)\
**Post date:** [May 12, 2022, 4:30pm UTC](https://community.kinsta.com/t/cannot-access-local-dev-site/1468/28 "2022-05-12T16:30:55Z")

</div>

Awesome, I’m just glad it’s working! You’re very welcome!

---

<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:** [May 15, 2022, 4:31pm UTC](https://community.kinsta.com/t/cannot-access-local-dev-site/1468/29 "2022-05-15T16:31:10Z")

</div>

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

[Previous page](https://community.kinsta.com/t/cannot-access-local-dev-site/1468.md?page=1)
