You wrote a great post, hit publish, and shared the link. But when you click it, you see “404 – Page Not Found.”
The strange part? Your homepage loads perfectly fine. It is just your individual posts that are missing. This is a classic WordPress “Permalink” issue. It usually happens after you migrate a site, install a new plugin, or update WordPress. The actual content is still in your database; the server just lost the map (URL structure) to find it.

Solution 1: Reset Permalinks (The Magic Fix)
This fixes 99% of 404 errors on WordPress posts.
- Log in to your WordPress Dashboard.
- Go to Settings > Permalinks.
- Scroll to the bottom and click Save Changes.
- Do not change anything. Just clicking “Save” forces WordPress to flush the rewrite rules and regenerate the .htaccess file.
- Check your posts. They should be back.

Solution 2: Fix the .htaccess File Manually
If the button didn’t work, your server might not have permission to update the file automatically.
- Access your site via FTP/File Manager.
- Find the .htaccess file.
- Edit it and ensure it contains the default WordPress code:
# 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
- Save and check your site.
Frequently Asked Questions
Why does this happen after migration?
The .htaccess file is often hidden during file transfers and gets left behind.
Will this affect my SEO rankings?
If fixed quickly, no. If left for weeks, Google will de-index the 404 pages.
Conclusion
The 404 error on posts is a terrifying ghost, but it’s usually just a broken map. A simple “Save Changes” in your settings is the exorcism you need.

