A secure home for your next big idea. Explore hosting →

Knowledgebase / WordPress

How to Fix WordPress 404 Errors on Existing Pages

If an existing WordPress page returns a 404, first open its current permalink from the dashboard. If that URL works, redirect the old address to the matching page. If the homepage loads but several published pages return 404s, check the permalink rules. Start with the case that matches what you see:

Prerequisites

Have WordPress administrator access and a backup of any server configuration you plan to edit. Collect several failing URLs and one working URL. Note whether the problem followed a migration, permalink change, plugin update or deletion.

A 404 is correct for a resource that no longer exists. The goal is to restore valid pages and provide meaningful redirects for moved content, not to make every unknown address return a successful homepage.

Step 1: Confirm the content exists

  1. Find the page or post in the dashboard.
  2. Check that it is published and that its slug matches the requested URL.
  3. Check whether it is in Trash, private or scheduled for the future.
  4. Open its current public permalink from the editor.

If the current permalink works but an old address fails, map the old address to the relevant replacement with a supported redirect tool. Avoid redirecting unrelated removed pages to the homepage, which is confusing for visitors and search engines.

Step 2: Identify a pattern

If the homepage works but most normal post URLs fail, routing or rewrite configuration is a stronger suspect than missing content. If only one custom content type fails, inspect the plugin that registers it and whether it is active. If images fail while pages work, inspect file URLs and migration paths separately.

Compare a logged-in browser with a signed-out browser. A preview link is not a public permalink. Do not use a working administrator preview as evidence that a draft is publicly available.

In WordPress Settings → Permalinks, note the current structure and save it without changing the intended format. Test a representative failing URL afterward. This refreshes WordPress rewrite information but cannot repair every external web-server configuration problem.

If WordPress reports that it cannot write rules, preserve the existing configuration and follow the server-specific instructions with the host. Apache and Nginx handle routing differently. Do not paste an Apache .htaccess example into an Nginx configuration or overwrite custom security and application rules.

Step 4: Resolve conflicts carefully

On staging, investigate recent plugins that add redirects, custom routes or security restrictions. Test one change at a time and keep a record of results. If a plugin owns the missing route, removing it can also remove that route; the resulting 404 does not prove WordPress itself is broken.

After repairing routing, purge only relevant application or CDN caches and test again. An old cached 404 can remain after the underlying page is fixed. Inspect the response and page content, not just a changed browser title.

Expected results and escalation

Existing published pages should load at their chosen canonical URLs. Moved pages should redirect to their specific replacements, and nonexistent pages should still produce a useful 404. Test navigation, one older post, a category archive where used, and a media URL.

For unresolved cases, provide the host with working and failing examples, the server type if known, the permalink structure and the time the issue began. Redact private paths and credentials from configuration snippets.

Frequently asked questions

Should I change the permalink format?

Not as a first diagnostic step. Preserve the current format and refresh its rules.

Why does an administrator preview work?

Preview access can display unpublished content that visitors cannot access.

Should every 404 redirect home?

No. Redirect moved content to a relevant replacement and retain proper responses for nonexistent URLs.

Related guides and hosting options

Compare WordPress hosting against your application requirements. Confirm available tools and management responsibilities for your own account. For account-specific help, open a private support ticket with the domain, time and relevant redacted error.

Official references