Skip to content

Knowledge base

Search every guide

Fixing 404 errors on pages and posts

The home page works but other pages show "not found".

When the home page loads but every other page shows 404, the permalink rules need to be rebuilt.

  1. In WordPress, go to Settings → Permalinks.
  2. Without changing anything, click Save Changes.

This rewrites the .htaccess rules. If it doesn't help, make sure the .htaccess file in your site's folder contains the standard WordPress block:

# BEGIN WordPress
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress