Posts go to 404 page

Hi, I have a wordpress site runnning woocommerce and Divi theme. When I create and publish a post, the page goes to a 404. All the forums I have searched say to go to permalinks and save again. This has not worked for me. If I don't publish and just do a preview of a draft, it works.

I do have a staging site with the default permalink (i.e. and published posts work.

The above investigations tell me that it is something to do with permalinks, but the standard solution of saving does not work. Appreciate any help you can provide on this.