Go to Dashboard → Settings → Permalinks and click save without changing anything. That’s all. 🙂