Other Pages Showing As 404 After Migrating WordPress Website

Are your other pages showing a 404-error after you migrated your WordPress website to another server to go-live? All you may need is to check your .htaccess file.

Check your .htaccess file to avoid 404-errors

To avoid getting 404-errors after making your website live, you must update your .htaccess file to match the new server path accordingly.

The default .htaccess file should look like the below:

# 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]
# END WordPress

Note, once changed, please be sure to refresh your permalinks accordingly.