# WP Admin returns 404 error nginx/1.26.1

**URL:** <https://community.localwp.com/t/wp-admin-returns-404-error-nginx-1-26-1/50455>\
**Category:** Support\
**Tags:** installation, mac\
**Created:** [June 9, 2025, 3:06pm UTC](https://community.localwp.com/t/wp-admin-returns-404-error-nginx-1-26-1/50455 "2025-06-09T15:06:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![LucyKebbell](https://avatars.discourse-cdn.com/v4/letter/l/da6949/32.png) [@LucyKebbell](https://community.localwp.com/u/LucyKebbell)\
**Post date:** [June 9, 2025, 3:06pm UTC](https://community.localwp.com/t/wp-admin-returns-404-error-nginx-1-26-1/50455/1 "2025-06-09T15:06:23Z")

</div>

### What issue or error are you experiencing?

Hi, I have just downloaded Local to my Mac (Sequoia 15.5) and created a website. When I click WP admin I get a 404 Error nginx/1.26.1. I’ve tried force quitting and rebooting, creating a new website and get the same error.

* * *

### What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

as well as the WP Admin error, on database it says unable to find HOST, NAME, USERNAME and PASSWORD.  
I have tried changing the browser to Chrome but this didn’t help.

* * *

### System Details

- **Local Version:**

- **Operating System (OS) and OS version:**

* * *

### Local Logs

Attach your Local Logs here ([Help Doc - Retrieving Local’s Log](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/))  
[local-logs.zip](https://community.localwp.com/uploads/short-url/a5F44phU8HjNNn2W5b9ghTReuE7.zip) (11.4 KB)

* * *

_ **Security Reminder** _  
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [June 9, 2025, 3:41pm UTC](https://community.localwp.com/t/wp-admin-returns-404-error-nginx-1-26-1/50455/2 "2025-06-09T15:41:52Z")

</div>

Hi @LucyKebbell

Could you try changing your Router Mode?

Preferences\>Advanced\>Router Mode

---

<div class="post-metadata">

**Author:** ![LucyKebbell](https://avatars.discourse-cdn.com/v4/letter/l/da6949/32.png) [@LucyKebbell](https://community.localwp.com/u/LucyKebbell)\
**Post date:** [June 13, 2025, 1:03pm UTC](https://community.localwp.com/t/wp-admin-returns-404-error-nginx-1-26-1/50455/3 "2025-06-13T13:03:21Z")

</div>

Thanks. I actually just started a different site and this time it worked.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [June 16, 2025, 1:53pm UTC](https://community.localwp.com/t/wp-admin-returns-404-error-nginx-1-26-1/50455/4 "2025-06-16T13:53:57Z")

</div>

Okay thank you for letting us know @LucyKebbell!

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [June 16, 2025, 1:54pm UTC](https://community.localwp.com/t/wp-admin-returns-404-error-nginx-1-26-1/50455/5 "2025-06-16T13:54:02Z")

</div>


