I'm using Magento 2.3 version. I have configurable products a normal product. both are works fine but the simple products assigned to configurable products getting 404 errors.
The configurable product detail page shows fine on the front end,
I changed the product visibility of assigned simple products to Catalog, Search but when I visit that products it shows 404 error.