# 404 links all of a sudden

**URL:** <https://community.localwp.com/t/404-links-all-of-a-sudden/43404>\
**Category:** Support\
**Created:** [June 21, 2024, 9:30pm UTC](https://community.localwp.com/t/404-links-all-of-a-sudden/43404 "2024-06-21T21:30:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![alvarix](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/alvarix/32/22012_2.png) [@alvarix](https://community.localwp.com/u/alvarix)\
**Post date:** [June 21, 2024, 9:30pm UTC](https://community.localwp.com/t/404-links-all-of-a-sudden/43404/1 "2024-06-21T21:30:05Z")

</div>

### What issue or error are you experiencing?

After my most recent DB pull some pages are returning 404.

Only notable thing is that the url changes from localhost:10003/page-name to localhost/page-name on the pages that go 404.

I can preview the pages fine from admin and from the Menu editor.

I tried relogging into wp for live links, restarting local, restarting computer.

* * *

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

* * *

### System Details

- **Local Version:**  
Version 9.0.3+6684
- **Operating System (OS) and OS version:**  
Sonoma 14.5 (23F79)

* * *

### Local Logs

Attach your Local Logs here ([Help Doc - Retrieving Local’s Log](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/))

* * *

_ **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 22, 2024, 1:05pm UTC](https://community.localwp.com/t/404-links-all-of-a-sudden/43404/2 "2024-06-22T13:05:22Z")

</div>

Hi @alvarix

You could try a few things to fix this up.

- Change your Router Mode and Stop/Start the site to see if that helps clean up the domains

- Re-Save permalinks

- Using WP-CLI and Open Site Shell you can run manual search and replace jobs to clean up URLs like this:

`wp search-replace incorrectdomain correctdomain --all-tables` (you can add a `--dry-run` flag if you want to just check the job first to see how many replacements could be made)

---

<div class="post-metadata">

**Author:** ![alvarix](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/alvarix/32/22012_2.png) [@alvarix](https://community.localwp.com/u/alvarix)\
**Post date:** [June 25, 2024, 3:45pm UTC](https://community.localwp.com/t/404-links-all-of-a-sudden/43404/3 "2024-06-25T15:45:04Z")

</div>

Hi nick.  
I tried messing with router mode and resaving permalinks, neither helped.  
As for changing the domains, Im not youre understanding - certain pages are stripping off the port after the redirect.  
Here’s one row:

| Modify | ID | post\_author | post\_date | post\_date\_gmt | post\_content | post\_title | post\_excerpt | post\_status | comment\_status | ping\_status | post\_password | post\_name | to\_ping | pinged | post\_modified | post\_modified\_gmt | post\_content\_filtered | post\_parent | guid | menu\_order | post\_type | post\_mime\_type | comment\_count |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| edit | 137 | 2 | 2024-05-13 18:07:26 | 2024-05-13 18:07:26 | | Discover Our Approach | | publish | closed | closed | | discover-our-approach | | | 2024-06-24 14:00:59 | 2024-06-24 14:00:59 | | 0 | [http://localhost:10003/?page\_id=137](http://localhost:10003/?page_id=137) | 20 | page | | 0 |
| If I paste the GUID into the browser, it returns this address with a 404: | | | | | | | | | | | | | | | | | | | | | | | |
| [http://localhost/discover-our-approach/](http://localhost/discover-our-approach/) | | | | | | | | | | | | | | | | | | | | | | | |

however other links work properly: eg: [http://localhost:10003/explore-recommendations/](http://localhost:10003/explore-recommendations/)

Theyre coming from a WP nav menu.  
Why some work and others dont is baffling,

---

<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 26, 2024, 1:14pm UTC](https://community.localwp.com/t/404-links-all-of-a-sudden/43404/4 "2024-06-26T13:14:40Z")

</div>

To clarify are you running into issues only when using Live Links or just when browsing the site from the app like Open Site or when you’re in WP Admin?

If you change your Router Mode to Site Domains is there any difference in the behavior?

---

<div class="post-metadata">

**Author:** ![alvarix](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/alvarix/32/22012_2.png) [@alvarix](https://community.localwp.com/u/alvarix)\
**Post date:** [June 27, 2024, 6:13pm UTC](https://community.localwp.com/t/404-links-all-of-a-sudden/43404/5 "2024-06-27T18:13:43Z")

</div>

I found a fix to the 404s.  
I discovered it worked fine in safari (no 404s), so in chrome I disabled extensions and cleared cache and it started working.  
I’m guessing maybe adblock but I havent tested each one.

This was happening in regular front end browsing on localhost:10003.

---

<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 27, 2024, 6:14pm UTC](https://community.localwp.com/t/404-links-all-of-a-sudden/43404/6 "2024-06-27T18:14:29Z")

</div>

Glad to hear it @alvarix thank you for the update!

---

<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:** [June 29, 2024, 6:14am UTC](https://community.localwp.com/t/404-links-all-of-a-sudden/43404/7 "2024-06-29T06:14:56Z")

</div>

Closed on June 29, 2024, 6:14am UTC

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