错误使用canonical导致网站首页被删除

一直以来对canonical 这个参数都不太了解, 只知道这个东西是声明网址的作用,但是具体怎样的操作,还真不知道。

这个真是演示版自己坑自己,外贸建站这么久,以前也没想到搞这个canonical, 这用一次,还出问题了。手机网站canonical,用的电脑版网址,结果导致电脑版的不被谷歌认可了,现在只收录手机版本的,难怪之前有人说可以用这个canonical 黑对手,看来还真是这么回事,只是我这回是自己坑了自己。

谨慎使用canonical,如果不懂的话。现在http://m.chinaobd2.com 的 canonical 属性,我已经去掉了。干脆不用这个了。省得我优化电脑版的代码好半天,结果只有手机版本的管用了。

刚刚还谷歌搜索了一下:

The rel=canonical element, often called the “canonical link”, is an HTML element that helps webmasters prevent duplicate content issues. It does this by specifying the “canonical URL”, the “preferred” version of a web page – the original source, even. Using it well improves a site's SEO.

猜你喜欢

转载自www.cnblogs.com/aid12580/p/10516419.html