If Google knows that these pages have the same content, Google will index only one page in the search results. Google's algorithm will select a page that they think can give the best answer to the user's search. Now, however, we can determine which page is a sample page according to the search engine's rating by adding a structure with the rel = "canonical" attribute to the page tag that is not yet considered. model.
Adding this link and attribute allows website owners to identify pages with duplicate content on the website and notify Google that: ' Among pages with duplicate content, this is a good page. Best. Please prioritize this page in search results '.
There are 2 ways to define a sample URL:
1 . Inserting a rel = "canonical" link into a tag on an HTML page is not considered a style page ( non-canonical page )
To determine the link http://www.example.com/product.php?item=swedish-fish is considered a template, create a link like this:
Copy this link to the tag of non-canonical pages, for example http://www.example.com/product.php?item=swedish-fish&sort=price .
If the content is both displayed on both pages http://www.example.com/product.php?item=swedish-fish and https://www.example.com/product.php?item=swedish-fish , it is possible to determine which page is a template page by creating a link:
and insert this link into the tag of https://www.example.com/product.php?item=swedish-fish .
2 . Determine the model type URL via the Link rel = "canonical" HTTP header.
Adding rel = "canonical" to the head of the HTML page is not available with PDF files and other file types indexed in Google Web Search. In that case, you can specify the pattern type URL via the Link rel = "canonical" HTTP header as follows: (note: in order to do this, you will need to be able to configure your servers):
Link: ; rel = "canonical"
Currently, google only supports header structures for web search.
Website owners can choose which web version can be considered by Google. Google will take this into account, along with other signs, to determine which URLs contain duplicate content, then calculate to determine which pages will be displayed on search results.
rel = "canonical" can be used with relative or absolute paths, but it is recommended to use absolute paths to minimize problems. If your text has an original link, the relevant links will be considered relative to this original link.
Have. The rel = 'canonical' attribute can be used only to determine which pages are the most popular among pages with duplicate content (still acceptable in the case of a few minor differences such as order Sort…)
For example, if a website has pages that talk about a sample of dance shoes, these patterns differ only in color, so you can determine the style page by determining which page has the preferred color type. most, and this page will be more likely for Google to include in search results.
However, the rel = "canonical" attribute may not be effective in the case that this website only wants to improve the ranking of the page about foam, not shoe pages.
Google will do its best to rely on algorithms and make decisions about which page will be the style page like Google has been doing.
Yes, in some cases. However, to ensure the selection of the best template page, Google recommends updating the links that lead to a style sheet.
Yes, in many cases it will be very difficult to create redirects, for example when you want to switch to a new domain name on a server that is unable to create redirects. In this case, it is possible to use the rel = "canonical" attribute to determine exactly which domain URL will be indexed. While the rel = "canonical" attribute is considered a suggestion rather than an absolute path, it is still considered a useful solution.