NetPoa

Fix "Page not found" (404) on WordPress pages

Updated 27 Nov 2026

If your home page works but pages and posts show "404 Not Found" (often after moving a site, restoring a backup or changing a plugin), WordPress's address rules are missing.

1. Save the permalinks again

  1. Sign in to yourdomain.co.tz/wp-admin.
  2. Open Settings › Permalinks.
  3. Do not change anything: just press Save Changes.

Reload a page. This fixes most cases: it rewrites the rules in the .htaccess file.

2. Check the .htaccess file

  1. In cPanel open File Manager › public_html. Open Settings (top right) and tick Show Hidden Files (dotfiles).
  2. Look for .htaccess. If it is missing, create it (+ File).
  3. Make sure it contains the 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 WordPress is in a sub-folder (for example /blog), change RewriteBase / to RewriteBase /blog/ and the last line to RewriteRule . /blog/index.php [L].

Keep any other lines that were already there (for example HTTPS redirects or security rules), outside the WordPress block.

3. Only some pages 404?

  • One page: check its slug (the address part) in the editor; it may have changed. Add a redirect from the old address.
  • After moving to a new domain: links in menus and content may still use the old address: see Move a website.
  • A plugin's pages (shop, membership): open that plugin's settings and save them once, or switch the plugin off and on.

4. Still not fixed

Switch off plugins one at a time to find a conflict, and check the error log: see Show PHP errors. Or open a ticket with an example address that fails.

Kwa Kiswahili

Ukurasa wa mwanzo unafunguka lakini kurasa nyingine zinaonyesha 404? Nenda Settings › Permalinks na bonyeza Save Changes bila kubadilisha kitu. Isipofanya kazi, hakikisha faili la .htaccess lipo kwenye public_html na lina sehemu ya WordPress.


Still need help? Open a ticket and we will reply.

Was this helpful?