WordPress 404 errors need different fixes depending on what is missing. If one old address fails, verify the content and its current URL. If many published pages fail while the homepage works, investigate routing and server rules. Preserve existing addresses while you test; redirecting every missing page to the homepage can conceal the real problem.
This guide helps site owners and agency teams decide whether to repair a route, update a link, create a relevant redirect or leave a genuine not-found response. It applies to ordinary WordPress pages and includes a separate check for WooCommerce endpoints. Start with a small set of real examples rather than changing the entire site’s URL structure.
Jump to: define the pattern, verify the content, inspect routing, check store endpoints, choose redirects, verify the repair.
1. Identify the pattern behind WordPress 404 errors
Record the complete failing address, where the visitor found it, the time and whether they were signed in. Include the exact spelling, path and trailing slash. Check a known working page alongside the broken example. A failure on one deleted article is a different incident from every service page failing after a hosting move.
Use your browser’s Network panel to check the main document request and its final response. A page that looks like an error can still return 200, while a genuine 404 can use your normal site header and footer. Google’s HTTP status documentation explains that successful responses are considered for processing, while error-like content delivered with a success status can be treated as a soft 404. A 200 response alone does not guarantee indexing.
Keep three examples for the investigation: one affected URL, one similar working URL and one deliberately nonexistent address. The last example tests whether the site handles genuinely missing content correctly. Use a harmless path on your own site; there is no need to probe other sites or collect a long list of random URLs.
If the problem began during a hosting or domain transfer, compare the deployment against our WordPress migration checklist. Note when the failures began and what changed, without assuming the latest change caused them.
2. Confirm that the intended content still exists
Open the affected item in WordPress and check its publication status, current permalink and any parent page. Compare the editor’s actual address with the failing link. A preview available to an editor is not proof that an anonymous visitor can view the same item. Draft, private, trashed or renamed content needs a content decision before a server repair.
If the public item opens directly but is missing from the site’s own search results, use our WordPress search not working guide to compare the submitted term, content scope and results template. A missing search result needs a different investigation from a result link that returns 404.
For hierarchical pages, check whether a parent was renamed or changed. WordPress’s page documentation describes how parent-child relationships affect page addresses. A menu or newsletter may still point at an earlier path even though the content is healthy at its current address.

This original illustration represents two different content states. In practice, an old campaign link to a renamed service may justify a redirect to that same service. A mistyped internal link to a page that never existed usually needs the link corrected. Do not recreate an empty page merely to make the error counter smaller.
When content has disappeared unexpectedly, preserve the current database and files before considering a restore. Check revisions, trash and the recent change history with the site owner. Restoring an old database to recover one page could also replace newer orders or enquiries; our backup restore test guide explains how to verify a recovery copy first.
3. Check routing without changing established permalinks
If multiple published pages return WordPress 404 errors, record the existing Settings → Permalinks configuration before touching it. Do not switch to a new structure as a troubleshooting experiment. The official Permalinks screen documentation notes that visiting the screen triggers a rewrite-rule flush. If you save the existing settings, keep the structure unchanged and record any warning WordPress displays.
A refreshed rule set is a test, not a universal repair. If the original URLs start working, verify several examples and document the result. If nothing changes, repeated saves provide little new evidence. Ask the developer or host to inspect the layer actually handling the request.
For Apache, WordPress’s troubleshooting FAQ identifies missing rewrite support as one possible cause of pretty-permalink failures. An unwritable or incorrect configuration needs a scoped hosting review, not a copied configuration file from an unrelated installation.
Nginx uses its own configuration rather than Apache’s .htaccess rules; consult the WordPress Nginx reference with the host. A reverse proxy or CDN may add another routing layer. Back up configuration, agree a rollback and use a protected test copy for disruptive changes. Avoid replacing the live server rules just because the homepage still loads.
Our staging site safety guide covers isolation before testing plugins, themes or deployment changes. If the symptom is a redirect loop rather than a final not-found response, follow the redirect loop investigation instead.
4. Treat WooCommerce endpoints as a separate test
A working shop homepage does not establish that account or checkout endpoints work. Record the specific journey and failing endpoint. Check that the required store pages exist and are assigned correctly before creating replacement pages. Do not publish duplicate cart or checkout pages to work around a routing error.
WooCommerce’s pages-not-displaying guidance covers page assignments, permalink rules, cache and component conflicts. It also explains that account actions can be endpoints appended to the main account address rather than separate WordPress pages. Check the installed store’s configuration and endpoint slugs before changing them.
If the page loads but its cart contents or payment behaviour are wrong, the problem has moved beyond WordPress 404 errors. Use the relevant investigation, such as our empty-cart troubleshooting guide, rather than continuing to alter routes. Preserve order and payment evidence before asking a customer to retry a transaction.
5. Redirect only when there is a relevant destination

For each old address, agree what it should lead to. If the content permanently moved to a clear replacement, a permanent server-side redirect is generally appropriate. If the original content should still exist at the original URL, fix that route instead. Where content is intentionally gone with no suitable replacement, a proper not-found response is a valid outcome.
Google’s redirect guidance distinguishes permanent and temporary moves. Choose the response that represents the actual change; do not use a temporary redirect for a permanent move simply because it is the first option in a plugin.
A blanket redirect from all unknown paths to the homepage makes a service page, a deleted article and a spelling mistake behave identically. Visitors lose the destination they expected, and your team loses useful evidence. Google’s crawl-error guidance recommends a relevant permanent redirect when a page moved or has a clear replacement, and a real error response when unavailable content has no replacement.
Update the internal links you control to point directly at the intended page. Use this broken link audit for older WordPress posts to find and update those references. Keep the redirect for valid old references that may still exist elsewhere. Check the resulting path so it does not pass through several avoidable redirects or return to the old URL.
6. Verify repaired routes and genuine missing pages
Retest the original examples as a visitor who is not signed in. A repaired existing page should show the correct content at its intended address. A redirect should land on the agreed replacement. A deliberately nonexistent path should still return an appropriate not-found response rather than unrelated content with a success status.
Compare the response and page content after any relevant cache refresh. If your anonymous test differs from the administrator view, record that difference for the host instead of assuming WordPress did not save the fix. Keep the test focused on the affected URLs and confirm important store journeys separately.
Record the before-and-after address, response, destination, configuration change and rollback. Search Console can provide additional evidence if you have access, but its reports are not an instant confirmation of every repair. Do not promise that correcting WordPress 404 errors will immediately restore rankings or indexing.
Need help investigating WordPress 404 errors?
DriftFix provides WordPress troubleshooting for businesses and agency teams. Send a few failing URLs, a working comparison and the recent change timeline to willem7904@gmail.com. We can work from a written brief to identify the right repair and agree its scope before changing the live site.

