WordPress Posts and Pages Returning 404 (Homepage Works)

Your homepage loads fine, but every post or page gives "Page not found". The content is still there — WordPress has usually just lost the rules that turn pretty web addresses into the right page.

Common signs of this issue

Safe checks you can do yourself

None of these require sharing passwords with anyone.

What this usually means

WordPress stores your posts in a database and builds each page when someone asks for it. Friendly addresses like /about-us do not exist as real files, so the server needs a set of rewrite rules that say "send anything you don't recognise to WordPress". The homepage works without those rules, which is why it is the one page that keeps loading when everything else breaks.

The most common causes are a missing or overwritten .htaccess file after a migration or restore, a move to a server that uses nginx without the right configuration, Apache's rewrite module being disabled, or a plugin that changed the rules and left them stale. Re-saving permalinks fixes the last case immediately and sometimes the first. The server cases need your host.

This matters more than it looks. While posts are returning 404, Google sees pages that no longer exist, visitors from search hit dead ends, and contact or product pages may be unreachable even though your homepage looks healthy. The good news is that nothing has been deleted — once the rules are restored, every page comes back exactly as it was.

What not to do

When to get help

If re-saving permalinks does nothing and the 404 page looks like a bare server error, it is time to contact your host — the fix is a server or rewrite setting on their side, and they can usually confirm it quickly. It is worth bringing in a developer when the problem started with a migration, only some content types are affected, or your host insists the server is fine. Someone who has untangled WordPress rewrite rules before can usually find the cause in minutes rather than hours of guessing.

Not sure what to do next?

Answer a few short questions and we'll point you to the safest next step — DIY, a freelancer, or a direct review. No passwords required.

Is this a business website? If this issue may be costing you leads, sales, or trust, you may want a direct review instead of trial and error.

Frequently asked questions

Why does my WordPress homepage work but other pages 404?

The homepage loads without any special address rules. Every other page relies on rewrite rules that send friendly addresses to WordPress. When those rules are missing or stale, only the homepage keeps working.

How do I flush permalinks in WordPress?

Go to Settings, then Permalinks, and click Save Changes without changing anything. That rebuilds WordPress's internal address rules and, on many hosts, rewrites the .htaccess file too.

Are my posts deleted?

Almost certainly not. If they still show in the dashboard under Posts and Pages, the content is safe. The site just cannot match the web address to the post.

Why did this start after moving to a new host?

The .htaccess file is often left behind because it is hidden, or the new host runs a different web server such as nginx that needs its own configuration. Either way it is an address-rules problem, not missing content.

Will this hurt my Google rankings?

A short outage will not do lasting harm. If posts return 404 for days or weeks, Google may start dropping them from results until they come back, so it is worth fixing promptly.

Only my product or event pages are 404. Why?

Those content types are usually created by a plugin. After that plugin is updated, reinstalled, or changed, its address rules may need rebuilding — re-saving permalinks or the plugin's own settings page normally sorts it out.

Related free guides

WordPress site down?

Seeing “There has been a critical error on this website”?

Our guided repair tool logs in over secure FTPS and fixes the most common WordPress failures — safely, with every change backed up and reversible. Start with a free scan, no password needed.

Fix My WordPress Site → Free scan · No download of your site · Reversible