Mobile app version of vmapp.org
Login or Join
Murray432

: Canonical redirection meta tag There are two pages in my website with the same content; only the URL's are different: www.websitename.com and www.websitename.com/default.html. Someone suggested that

@Murray432

Posted in: #CanonicalUrl #MetaTags #Redirects

There are two pages in my website with the same content; only the URL's are different: websitename.com and websitename.com/default.html. Someone suggested that I should add canonical tags to avoid them being considered as duplicate content.

Where should I add canonical tags and why?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Murray432

1 Comments

Sorted by latest first Latest Oldest Best

 

@Lee4591628

What is a canonical page?

A canonical page is the preferred version of a set of pages with highly similar content.
Why specify a canonical page?

It's common for a site to have several pages listing the same set of products. For example, one page might display products sorted in alphabetical order, while other pages display the same products listed by price or by rating. For example:
www.example.com/product.php?item=swedish-fish&trackingid=1234567&sort=alpha&sessionid=5678asfasdfasfd www.example.com/product.php?item=swedish-fish&trackingid=1234567&sort=price&sessionid=5678asfasdfasfd
If Google knows that these pages have the same content, we may index only one version for our search results. Our algorithms select the page we think best answers the user's query. Now, however, users can specify a canonical page to search engines by adding a element with the attribute rel="canonical" to the section of the non-canonical version of the page. Adding this link and attribute lets site owners identify sets of identical content and suggest to Google: "Of all these pages with identical content, this page is the most useful. Please prioritize it in search results."

How do I specify a canonical URL?

You can specify a canonical URL in two ways:

1.Add a rel="canonical" link to the section of the non-canonical version of each HTML page.

To specify a canonical link to the page www.example.com/product.php?item=swedish-fish, create a element as follows:



Copy this link into the section of all non-canonical versions of the page, such as www.example.com/product.php?item=swedish-fish&sort=price.
If you publish content on both www.example.com/product.php?item=swedish-fish and www.example.com/product.php?item=swedish-fish, you can specify the canonical version of the page. Create the element:



Add this link to the section of www.example.com/product.php?item=swedish-fish.
2.Indicate the canonical version of a URL by responding with the Link rel="canonical" HTTP header. Adding rel="canonical" to the head section of a page is useful for HTML content, but it can't be used for PDFs and other file types indexed by Google Web Search. In these cases you can indicate a canonical URL by responding with the Link rel="canonical" HTTP header, like this (note that to use this option, you'll need to be able to configure your server):

Link: www.example.com/downloads/white-paper.pdf; rel="canonical"

Google currently supports these link header elements for Web Search only.

Source: support.google.com/webmasters/bin/answer.py?hl=en&answer=139394

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme