If some pages are in error 404
Check Permalink Settings, it should be "Post name". (here: /wp-admin/options-permalink.php)