Enable Your Sitefinity Pages to use Canonical URL Tags

Craig Holdheide  |  Aug 11, 2014  |  Comments

Want to enable canonical tags for all Sitefinity pages, watch this short video clip and see how. 

 

Background Details

Since Sitefinity 6.0 there has been support for canonical tags for modules.  This was a nice feature and essentially the detail view of every content item would now have a canonical tag in the head of the page.

For example, if you view one of my blog posts on this web site you will see the something similar to the HTML below in the head of the page.

This snippet above tells search engines like Google that my preferred page for this content is the one specified by the href attribute.  This is great stuff but how do I apply this to plain old Sitefinity pages?

Fast forward to Sitefinity 6.2 and static pages now support canonical url tags, except they are not enabled by default.  Below are the steps to enable canonical tags on Sitefinity pages.

 

Steps To Enable Canonical Tags on All Sitefinity Pages

  1. Log on to the Sitefinity back end and go to Administration > Settings > Advanced.
  2. On the advanced settings page go to System > Content Locations > Page Default Canonical Url Settings.
  3. On the "Page Default Canonical Url Settings" page, check the box labeled "Enable Page default canonical url tag." and click the "Save changes" button.Page Default Canonical Url Settings

That's it!  You now have canonical tags for every single one of your Sitefinity pages.  Even more interesting, if I add a trailing slash or have capital letters in my url, Sitefinity is smart enough that it will automatically remove the trailing slash and make all letters lower case in the canonical tag.

It is also important to note that Sitefinity will not automatically include query strings parameters in the canonical URL.  This can easily be fixed by updating the Allowed Canonical Url Query String Parameters.

Allowed Canonical Url Query String Parameters

  1. Log on to the Sitefinity back end and go to Administration > Settings > Advanced.
  2. On the advanced settings page go to System > Content Locations > Page Default Canonical Url Settings > Allowed Canonical Url Query String Paraemters.
  3. Click the "Create new" button.
  4. Enter the name of the query string parameter in the "Parameter Name" field and click "Save changes".

That's it, you now included a query string parameter to be included in your canonical url.

Additional Links

comments powered by Disqus

My Social Channels

Keep Up To Date

What is this?