Fix WordPress 404 errors

If your WordPress site is showing 404 error pages, you can fix this by simply navigating to Settings > Permalinks and just click ‘Save Changes’. Just by saving, the links/rewrite rules are rebuilt and the pages appear as normal.