I have a WordPress site is running on my domain. There are some pages that are indexed and cached by Google with query string like this: example.com/category/xxx/?post_type=product.
I want Google to index that page, but without the query string. How can I make Google cache example.com/category/xxx (without the query string post_type). I want Google to stop indexing any pages on the site that have a query string. None of the query strings on my site actually change the content of the pages.
Should I redirect to remove the query string? How would I do that?