評估不同語系的相近內容頁面是否使用 canonical

說明:
網站的一些(產品)列表及各別(產品)細節頁面在不同語系頁面都會產生內容相近的頁面,這可能不利於 SEO,要評估一下是否在 <head> 區段中使用 canonical 來指定哪一個是 「標準網頁」。

canonical 參考說明:
http://support.google.com/webmasters/bin/answer.py?hl=zh-Hant&answer=139394

產生 canonical 資訊給搜尋引擎參考的方式 (這只是建議搜尋引擎而給它資訊,不是指令):

1.非「標準網頁」 之 HTML 的 <head> 區段中指定標準網址。範例:

假設「標準網頁」在 http://tagbee.chihchia.com/list.php?t=std,那要在其他非「標準網頁」寫:

<html>
<head>
<link rel=”canonical” href=”http://tagbee.chihchia.com/list.php?t=std”/>
…..
</head>
…..
</html>

2.非「標準網頁」 之 HTTP Header (標頭)指定標準網址。對於 PDF 這類的檔案類型適用這種方法。範例:

Link: <http://tagbee.chihchia.com/data.pdf>; rel=”canonical”

用 PHP 時是這樣寫:
<?php
header(‘Link: <http://tagbee.chihchia.com/data.pdf>; rel=”canonical”‘);
?>

使用建議:
1. 建議用絕對連結,而不是相對鏈結。
2. 建議各頁面直接指定到最終的標準網址,而不是讓搜尋引擎追蹤一連串的 rel=”canonical” 才到最後的目的地。

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.