For some reason there are 3 or 4 pages on my site for which Google has indexed the non-www version.
I 301 redirect all requests to https and www in .htaccess but it's very odd to me that when I search for
My Company Name demo that the only result for the corresponding page on my site does not have the www (
https://my-company-name.com/request-demo). However if I search for
My Company Name free trial, the result for the corresponding page does include the www (
https://www.my-company-name.com/free-trial). The pages are almost identical in code... in fact the free trial page was created by cloning the demo page in WordPress.
Now that I have the redirect to www in place, this is no longer problematic, but for the sake of consistency, curiosity and avoiding introducing potential problems down the line (for SEO, will the www version of this page be considered "duplicate content"?), I'd love to "un-index" the non-www version and have the search results show (and link to) the www version.
Any ideas on how i can go about achieving this? And perhaps more importantly, does anyone have an explanation as to why/how this is happening?