Step::1 Log into your WordPress dashboard
Step::2 Go to Settings section and choose the option Permalinks
Step::3 Here click on the Day and Name button and click over Save Changes.
This will update your permalinks settings and flush rewrite rules. In most cases this solution fixes the WordPress posts 404 error.
In this way you could Fix WordPress error 404 page not found after server migration.
Visit our Blog for more details. You can also watch the video here.