Canonical URL link appearing on every page

Posted by Community Admin on 03-Aug-2018 17:08

Canonical URL link appearing on every page

All Replies

Posted by Community Admin on 05-Mar-2015 00:00

We are seeing something to the effect of <link rel="canonical" href="https://mysite.com/somewhere/" /> being sent in out in <head> of every page on our site.  This is a problem because we have a client who in certain instances needs to use a canonical link to give credit to creators in certain instances.  Is there a way to disable this functionality?

 

Thanks,

Dan

Posted by Community Admin on 09-Mar-2015 00:00

Dan,

I wrote a blog post a while back that describes exactly how to enable canonical URLs for Sitefinity pages.  I also include a video in the post that shows how all of this is done.

http://codeengage.com/blog/craig-holdheide/2014/08/11/enable-your-sitefinity-pages-to-use-canonical-url-tags

Also, you can disable canonical URLs per page.  Just follow my simple steps below to disable a canonical url and add your own.

  1. Log on to the back-end of your Sitefinity web site (example: www.yourdomain.com/sitefinity).
  2. Click on "Pages" in the top navigation
  3. For the page you want to disable canonical URLs, just click Actions > Title & Properties.
  4. On the "Edit a page" screen, scroll down to the "Advanced options" section and expand it if it is collapsed.
  5. Set the "Canonical URL" property to "Disabled"
  6. If you want to supply your own canonical URL, just copy the canonical tag HTML below, paste it in the field "HTML in the <head> tag (except title, keyword, description)", and set the URL to your own custom URL.

    <link rel="canonical" href="your custom url here" />

 

Hope this helps.

 

Craig

Posted by Community Admin on 09-Mar-2015 00:00

Thank you, this helped a lot.

 

Dan

This thread is closed