The permalink structure can get lost sometimes
Sometimes the link structure on your WordPress needs a jumpstart. After deploying your site, installing new features or just plain high volume day to day operation your links may have moved to places where they don’t belong. If you are seeing unexpected 404 pages, for example with redirection after successful payments in WooCommerce, try resetting your permalinks like so:
Reset permalinks manually
Make a full backup, before you do anything.
Go to General > Permalinks
Whatever your settings are, select a different permalink option and hit Save.