Knowledgebase article

Pages show "404 Not Found" after moving or changing my site

Your homepage works, but other pages show 404 Not Found? This often happens after moving a website, changing its address, or restoring a backup. The server can't find the page at that address.

WordPress: refresh your permalinks (fixes most cases)

  1. Log in to WordPress and go to Settings > Permalinks.
  2. Don't change anything. Just click Save Changes.

This rewrites the .htaccess file that tells the server how to find your pages.

Check that .htaccess exists

  1. In cPanel, open File Manager, click Settings and tick Show Hidden Files (dotfiles).
  2. In your site's folder, check that .htaccess is there.

For WordPress, it should contain at least:

# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress

Did the address change?

If you moved the site from a sub-folder or another domain, old links still point to the old addresses. Update them (see How to change your WordPress site address (URL)), and add 301 redirects from old pages to new ones in Domains > Redirects.

Case matters

On Romeo's servers, About.html and about.html are different files. Check that your links match the file names exactly.

Only images are missing?

Check that the wp-content/uploads folder was copied completely during the move.

Was this answer helpful?

Related articles

Still stuck? Romeo's got you.
Our support team replies around the clock, real humans who know your server.