不久前,Google、Yahoo與Live Search(可惜不包括百度)幾乎同時宣布了對網頁重復內容的解決方案。三家分別在各自博客上發布了聲明:「Specify your canonical」「Fighting Duplication: Adding more arrows to your quiver」以及「Partnering to help solve duplicate content issues」。
舉個例子,以下兩個地址其實指向同一內容:
https://www.newrain.net/
https://www.newrain.net/index.html
如果你希望搜尋引擎收錄上面那個地址(https://www.newrain.net/),具體做法是:在 bạn cho rằng屬於複製內容的網頁(index.html)源代碼的 <head> 區域,加入以下 <link> 標記來指定首選版本:
<link rel="canonical" href="https://www.newrain.net/" />
其中的鏈接地址即為你的首選鏈接。這樣,Google就能快速將重復內容排除在外,而把重點放在提升首選鏈接地址的排名上。
使用提示:
· 鏈接地址支持相對路徑。
· 添加該 Link 的頁面與其指向的URL必須處於同一域名下,但可以分屬不同的子域名。