I got a warning from GSC that several pages have the wrong canonical tag however they all have query strings added on the end of the url like this:
https://www.example.com/pagename.html?ref=example2.com
Question1: Is this caused by someone redirecting the page to example2.com
Question2: How to I prevent this for all affected pages via htaccess?
PS. I never use query strings on my site.