i have referred so many website. All are using canonical url for source code.. please any one suggest me
Canonical URL means choosing best URL from the available. But this becomes a problem when your website's home page URL gets indexed by search engines with www and sometimes without www. To resolve this, canonical tag is used on the web page or a 301-redirect method is implemented.
Canonicalization is the process of picking the best url when there are several choices, and it usually refers to home pages. For example, most people would consider these the same urls: www.example.com, example.com, www.example.com/index.html, example.com/home.asp But technically all of these urls are different. A web server could return completely different content for all the urls above. When Google “canonicalizes†a url, we try to pick the url that seems like the best representative from that set.
Its used when you have duplicate content on the same domain, to tell google which URL is the source page.Â