15.2.5 HTML rel canonical 属性值
rel canonical 属性值 -- rel="canonical"属性让搜索引擎知道当前网站中的重复或相似网页中,哪一个页面才是站长想让其抓取与收录的
- canonical属性值通常在,rel属性中出现
- 引用网址:http://www.dreamdu.com/xhtml/rel_canonical/
- canonical从功能上来讲,可理解为301永久重定向的辅助功能
- canonical可以与相对链接或绝对链接一起使用,但是建议使用绝对链接
- Google对canonical的定义是:规范网页是一组内容高度相似的网页的首选版本
- canonical:中文"典范"的意思
示例
<linkrel="canonical"href="http://dreamdu.com/"/>
指定网页http://www.dreamdu.com/为搜索引擎应收录的链接(规范链接)。可以将上述代码复制到所有非规范网址的head部分,例如网址www.dreamdu.com、www.dreamdu.com/default.html、www.dreamdu.com/index.html等