On this page
Short answer: To fix a WordPress 404 error, first re-save your permalinks under Settings → Permalinks, which rebuilds URL rules. If posts still return 404, check the .htaccess file or server rewrite rules. For individual missing pages, set 301 redirects to the right URL, and monitor 404s with a redirect plugin.
A 404 page means the server cannot find what a visitor asked for. Sometimes the page really is gone, but often a setting is wrong. This guide explains how to fix each kind of WordPress 404 error.

Key takeaways
- Re-saving permalinks fixes many site-wide 404s.
- Server rewrite rules must allow pretty permalinks.
- Redirect moved pages with 301 redirects.
- Monitor 404s to catch broken links early.
Site-wide WordPress 404 error on posts
If the home page works but every post shows a 404, the rewrite rules are usually missing. Therefore, go to Settings → Permalinks and click Save without changing anything. As a result, WordPress rebuilds the rules, and posts usually work again.
Check .htaccess or server rules
On Apache servers, WordPress needs rewrite rules in the .htaccess file. If the file is missing or not writable, recreate it with the standard WordPress rules. Similarly, Nginx servers need a try_files rule in the server configuration, which your host can add.
Fix a WordPress 404 error on individual pages
- Find the old URL in your 404 log or Search Console.
- Decide where it should go now.
- Create a 301 redirect from the old URL to the new one.
- Update internal links so they point to the new URL directly.
Finding every WordPress 404 error
You cannot fix what you cannot see. So use the Redirection plugin to log 404s, and check the Pages report in Google Search Console. In addition, crawl your site occasionally with a link checker. Consequently, broken links are caught before many visitors find them.
WordPress 404 error after a migration
Migrations often cause 404s, because rewrite rules or URLs change. Therefore, re-save permalinks after every move, and run a search-and-replace if the domain changed. Moreover, set redirects from old URLs if the structure changed.
Custom URLs from plugins
Some plugins add their own URLs, such as shop pages or verification links. If those return 404 after an update, re-saving permalinks usually helps too. For example, CertiQR verification links rely on rewrite rules, so a permalink save fixes most issues.
Design a helpful 404 page
- Explain clearly that the page was not found.
- Offer a search box.
- Link to popular pages and the home page.
- Keep your normal header and footer.
404 errors from old campaigns
Old newsletters, social posts and printed materials keep sending visitors to URLs that no longer exist. Therefore, check your 404 log for addresses with many hits, because they often come from such sources. Then redirect each one to the most relevant current page. As a result, old marketing keeps working instead of disappointing visitors.
Soft 404s
A soft 404 is a page that says “not found” but returns a normal status code. Search engines treat these as low-quality pages. So make sure missing content returns a real 404 status, and redirect only when a genuine replacement exists. In short, honest status codes keep your site healthy in search results.
In addition, the WordPress hardening guide is a useful, independent reference if you want to read further.
Frequently asked questions
QWhy do my WordPress posts show 404 but the home page works?
Usually missing rewrite rules; re-save permalinks.
QAre 404 errors bad for SEO?
A few are normal. Fix important broken links and redirect moved pages.
QShould I redirect all 404s to the home page?
No. Redirect each page to its closest replacement, or let truly gone pages return 404.
QHow do I find broken links?
Use Search Console, a redirect plugin’s 404 log or a link checker.
Ready to try it?
Running a WordPress site? Add verifiable certificates with CertiQR – try it free for 7 days.


