To resolve this save permalinks once again.
Log in to your WordPress admin dashboard.
- Go to Settings → Permalinks.
- Note the current setting (so you can revert if needed).
- Select Plain and click Save Changes.
- Now, change it back to Post name (or your preferred structure) and
Save Changes again.
- Check if your pages are working now.