I have just migrated my local wordpress to live. And after importing the old database it seemed the site came up fine. But when I clicked the navigation menu, it kept showing “Not Found” error.

The solution is pretty simple -- login to wordpress dashboard, goto Settings > Permalinks and select the “Default” option.

That’s it, all working fine again.

UPDATE

This problem can also occur if there’s no .htaccess file present in your documentroot folder. So all you need to do is to create a .htaccess file and paste the following content inside --

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ -- [L] RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L] </IfModule>

That’s all again!

Categorized in: