When I click on a product it redirects to wordpress website, what’s wrong?

In order to fix that you must reset wordpress permalinks, set them to default click save, set them to custom , click save and it’s done.