问题原文
原帖链接 · progquester · CC BY-SA 4.0
In google search console, it reports my URL is duplicate and excluded because the submitted URL is not selected as cannonical.
In the inspection result page, it sasys:
User-declared canonical: https://a.b.c/index.html
Google-selected canonical: https://a.b.c/index.html
It is noticed that the only difference is the scheme. For URL submmited, it is "https", but for selected by Google, it is "http".
In fact, both the above URLs are one same page. I have put the canonical tag (href="https://a.b.c/index.html") in the page header meta.
Why does Google still select http as cannonical, regardless my assignment? How can I fix it?
Thank you very much!
已采纳解答
原帖链接 · Tony McCreath · CC BY-SA 4.0
Canonical tags are a suggestion and just one of the signals used to help Google determine which URL to chose.
A stronger signal is to 301 redirect the http pages to the https ones. That will also force your users to a secured and safer environment.
I suspect Google may be choosing the http versions if they have more links to them. Try and update any links you control to go to the https versions.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
