The canonical label is a standardized label proposed by Google, Yahoo, and Microsoft in 2009. Baidu also issued a notice on January 8, clear to the support of the canonical label, in the group many people still do not understand Baidu official explanation, we will take this opportunity to say how to use the canonical tag.
Canonical label function and how to use it?
Canonical role: The main role in the list, column, article pagination, because the reason for the program each page is the same title, but the URL is really different, will be the search engine that is repeated content, the use of the label can specify a link to the authority to avoid duplication.
How to use: <link rel= "canonical" Href= "Web page authoritative link"/>
Note: Here is the <link rel= "canonical" Href= "an Address" > The label should be added to the
What kind of situation would you like to use canonical tags?
Article List, column, article has pagination, but the title is the same, we look at an example:
For example, we have an article on the site "SEO how to analyze the site log" has pagination, article address: http://www.new85.com/seopeixun/seojinjie/47.html
Title:
<title> How do I analyze Web logs? -SEO Practical Tutorials-New85_seo optimization _seo Free Training _ website Diagnostics _sem Network Marketing _ Tianjin Enterprise-level consultant </title>
Due to the length of the issue of the article used content pagination, paging address: http://www.new85.com/seopeixun/seojinjie/47_2.html
Let's take another look at the title:
<title> How do I analyze Web logs? -SEO Practical Tutorials-New85_seo optimization _seo Free Training _ website Diagnostics _sem Network Marketing _ Tianjin Enterprise-level consultant </title>
By the comparison of title, you can see the site title is exactly the same, then this will cause two titles, but the content is not the same page, for search engines, every page is essentially a document, indexing time is also based on the document to sort, then the same title different content, In a certain program will be judged as similar articles, while for the entire weight of the article will also be dispersed, canonical tags can be clearly told the search engine, this weight should be imported which page.
The second case, pseudo static caused double included, especially in the win host WordPress, will have? p=xxxx and pxxxx.html two kinds of pages included, then this situation will use the canonical tag. In the article page header add the page address you want to specify. (usually the case is a pseudo static address.) Even if there is a double included in the case your weight value will also be in your label in the specification of the address.
Use an absolute or relative address?
It is recommended to use an absolute address, what is an absolute address? is the whole path, like http://www.new85.com/seopeixun/seojinjie/47.html L is an absolute address,
What is the relative address? /seopeixun/seojinjie/29.html This is the relative address.
How does an open source program use this tag?
Each program is a different label, my personal station is the use of the Imperial CMS, then I will give examples of how the Empire CMS should use the label to standardize the entire site URL.
There is a content template in the Empire CMS, we can open the content template, add in
<link rel= "canonical" href= "[!--titleurl--]"/>
In this way, even if you are divided into 10 pages, your weight address will only be the first page of the current article address.
For the list page, the Empire does not have a label that can accurately output this weight page address, but we can implement it through PHP.
The way to do this is to include in the list template of the Empire template
<link rel= "canonical" Href= <?=sys_returnbqclassname ($class _r[$GLOBALS [navclassid]],9)?> "/>
Other programs please develop it yourself.
So what can we do with this tag, new85 summed up the 2013 search engine development focus should be on the semantic search and weight concentration, the search engine is a machine, how to understand the meaning of people, has been the major search engines have been looking for how to solve this problem, such as the famous " Hotdog "and" hot Dog "were proposed by Google's founder, page. How to make a search engine judge whether to eat a hot dog or a dog with a fever, semantic search arises from this.
The so-called weight value concentration, that is, the webmaster told the search engine what kind of page is recommended, a number of recommendations will focus on a certain weight in this page, in search engine ranking to get a better ranking, canonical tag can make the webmaster control the site within the weight of the page set.
White hat SEO technology is so much, so grasp the details to win a better opponent.
This article from Tianjin SEO http://www.new85.com/seopeixun/seojinjie/148.html