Sometimes Error 404 appears after importing products. Here is the easiest way to get rid of this error:
Go to your WordPress Dashboard β Settings β Permalinks. Select Post name and click Save Changes. If a Post name option is already selected, then just click Save Changes.