We’re not sure why this happens, but the fix is an easy one.
From the WordPress dashboard, navigate to Settings < Permalinks.
The Permalinks Settings page will appear. You don’t need to alter any of the settings on this page; just scroll to the bottom and click “Save Changes”.
Permalinks Settings page