A canonical tag is an important tag to add to a web page where you may have duplicate content. By setting a canonical tag you are telling a search engine what is your preferred page.
You may also have seperate pages that have the same content, this is fine but you should really use a canonical tag to tell them which is the preferred page for indexing. This doesn't mean they will of course but all the major search engines recognise and respect this tag.
So if you have this scenario:
You probably want to have some kind of URL rewriting on but that is another post for another time. This is likely to. You would likely add a canonical tag to this page.
This tag goes into the head of the document and tell the search engine what your preferred page for indexing is.
Using ASP.NET Master Pages
This is also quite straight forward, you do not have access to the head of the document as this resides in the Master. We suggest you had this to the page itself
Dim canonicalTag As New HtmlLink()
canonicalTag.Href = "http://www.yourwebsite.co.uk/fish-bites"
canonicalTag.Attributes("rel") = "canonical"
If you have a better way of doing this let us know.
Here is a video from Google about canonical tags and their benefits and usage:
We are steadily building up our list of useful resource, you can see these in our blog or by going straight to our coding area.
Pebble are specialists when it comes to ASP.NET development. For more information call us on 01733 367799 or email us via our contact page.