Using the Canonical Link Tag in DNN
As announced at SMX West last week, Google, Yahoo, and Microsoft have united behind a new standard to fight duplicated content created by multiple Urls calling on one and the same page. The idea is to designate a single “canonical” Url that then gets indexed by search engines. Up until now, 301 redirects were the preferred way to minimize duplicate content through canonicalization. However, redirection is not always practical, so the following new syntax has been agreed upon:
<link rel="canonical" href="http://seablick.com/blog.aspx"/>
According to W3C specifications, the link tag resides in the <head> section of the HTML document and defines the relationship between a document and an external resource.
I won’t go into further details on the inner workings of the canonical link tag, but instead show you how easy it is to take advantage of it in DotNetNuke.
As you can see from the screenshot above, all you need to do is paste the entire link tag into the Page Header Tags field fount under Page Settings > Advanced Settings. There are no modules or other kinds of extensions required. What do you do with module-driven pages though, which are not associated with conventional Page Settings in any way? Well, the responsibility to add support for the canonical link tag goes back to the module developer. Programmatically speaking, it’s not a big effort to dynamically inject header tags as demonstrated by the core framework. Go bug your module vendor now :)-
Comments are closed