WordPress websites and business systems

How to Fix WordPress Pages Showing a 404 Error

Homepage loads but other pages show 404? Re-save permalinks first, then check .htaccess and server rules.

Chris Eggleston
Chris Eggleston WP Mantis
Updated November 14, 2026 /  
Pages show 404. When posts exist but will not load.

Your homepage loads, but clicking any page or post shows “404 Not Found.” The content is still there. WordPress just cannot match the pretty URL to it. This usually takes one minute to fix.

  1. Log in to WordPress.
  2. Go to Settings → Permalinks.
  3. Do not change anything. Click Save Changes.
  4. Reload one of the broken pages.

This rebuilds WordPress’s rewrite rules and, on Apache servers, rewrites the .htaccess file. It fixes the problem most of the time, especially after a migration or a plugin that registers new post types.

Fix 2: Check .htaccess (Apache and LiteSpeed)

If saving permalinks did not help, WordPress may not be able to write the file. Connect with SFTP and open .htaccess in the site root (show hidden files). It should contain the standard WordPress block:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

If it is missing, add it. If the file exists but WordPress cannot update it, check that its permissions are 644.

Fix 3: Nginx servers

Nginx does not use .htaccess. The server configuration needs a rule that sends unknown URLs to WordPress (try_files $uri $uri/ /index.php?$args;). Managed WordPress hosts set this up automatically. If you just moved to an Nginx server and only the homepage works, ask your host to check it.

Fix 4: A plugin or post type slug clash

If only some URLs fail, look for a page and a custom post type or category using the same slug, or a recently installed plugin that changes URLs. Deactivate the plugin and re-save permalinks to test.

Single pages that really are missing

If an old URL was deleted or renamed, set up a 301 redirect to its replacement so visitors and search engines land somewhere useful. Most SEO plugins, including Mantis SEO, include a redirect manager.

Still seeing 404s?

Our $79 one-time fix covers it, fixed or your money back.

Chris Eggleston
Chris Eggleston
Husband. Father to 4. Grandpa to 2. Gravity Forms enthusiast. As the owner of WP Mantis, I’m on a mission to simplify the WordPress experience for site owners. I also try to bring a unique perspective to the Gravity Forms community at gravityranger.com.
Next step Not sure what your site needs next?

We will look at it properly and tell you the five things worth doing, in order, whether or not you hire us.

Affiliate links disclaimer