I submitted a page to Google Search Console and got an error message "Duplicate without user-selected canonical".
The full URL is
https://example.com/french-english-translator-iphone-ipad.html but I want it to appear without the file extension in Google search results.
So I included the canonical link in the tab below.
<link rel=”canonical” href=”https://example.com/french-english-translator-iphone-ipad”>
I have seen several articles including in a Moz blog that showed canonical links without file extensions.
So, do I have to include the file extension in the canonical link?
How can a tell Google that I don't want .html shown in Google search results?
Google selected a URL without a file extension for another one of my pages, so it appears that the answer to my question is no.
However, in the new canonical URL chosen by Google, they added "www." before the URL. I don't include "www." in my URLs and I don't want Google to display "www." in search result.
I thought the whole purpose of canonical links is to tell Google the URL you wand used to access and display a page in the search results. What good is that if Google assigns canonical URLs different than the ones you provide?