Free auditStart free
GuideError · HTTP status codes

404 Not Found in WordPress

Fix a WordPress 404 Not Found: re-save permalinks, restore the default .htaccess block, enable mod_rewrite, add nginx try_files and rule out plugin conflicts.

4 min
read
8
sources
Oct 21, 2026
updated
Scaplet Editorial Team
author
The short answer

A WordPress 404 Not Found on pages that exist usually means the rewrite rules that send pretty URLs to index.php are missing or not running. Re-save Settings > Permalinks, restore the default .htaccess block on Apache, make sure mod_rewrite and AllowOverride allow it, or add try_files $uri $uri/ /index.php?$args; on nginx. Then rule out a plugin.

  1. Two kinds of WordPress 404
  2. Fix pretty permalinks that return 404
  3. If permalinks are fine: plugins, themes and moved sites
  4. Verify the fix
30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
04How it works

Verify the fix

  1. 01

    Test a post and a page

    Open a post URL and a page URL in a private window.

  2. 02

    Check the status line

    curl -sI the URLs and confirm 200, not 404.

  3. 03

    Test a URL that should 404

    A made-up path should return 404 with your theme's 404.php design.

Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01How do I fix a 404 error in WordPress?

Go to Settings > Permalinks and save. If that fails, restore the default .htaccess rewrite block (Apache), confirm mod_rewrite and AllowOverride are on, or add try_files $uri $uri/ /index.php?$args; for nginx. Then deactivate plugins to rule out a conflict.

02Why do my WordPress pages show 404 but the home page works?

The home page can load without a rewrite, while posts and pages with pretty permalinks need the rewrite rules. They are missing, not refreshed, or not running on your server.

03How do I fix 404 errors on custom post types in WordPress?

WordPress's Common Errors guide gives two steps. Make sure no custom post type and single page share the same name, renaming the page and its slug if they do. Then go to Settings > Permalinks, select the default permalinks, save, and reselect your preferred structure to flush the rewrite rules.

04What does 404 mean?

The server did not find a current representation for the requested URL, or is not willing to disclose that one exists. RFC 9110 does not say whether the condition is temporary or permanent.

Sources · 8

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • rfc-editor.org
  • wordpress.org
  • apache.org
  • google.com
  1. 01RFC 9110: HTTP Semanticsrfc-editor.org · checked 2026-10-25
  2. 02WordPress.org Documentation: FAQ Troubleshootingwordpress.org · checked 2026-10-25
  3. 03WordPress Advanced Administration: Common WordPress errorsdeveloper.wordpress.org · checked 2026-10-25
  4. 04WordPress Advanced Administration: Apache HTTPD / .htaccessdeveloper.wordpress.org · checked 2026-10-25
  5. 05WordPress Advanced Administration: Nginxdeveloper.wordpress.org · checked 2026-10-25
  6. 06WordPress Theme Handbook: Template Hierarchydeveloper.wordpress.org · checked 2026-10-25
  7. 07Apache HTTP Server 2.4: core features (AllowOverride)httpd.apache.org · checked 2026-10-25
  8. 08How HTTP status codes affect Google's crawlersdevelopers.google.com · checked 2026-10-25
Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane