Rel = Canonical in Blog Posting
-
Hello,
I keep coming back to rel=canonical issues!
I noticed when I "view pagesource" that my drupal blog posting automatically creates
link rel="canonical" href="/sample-blog-title" /< pattern (with the > reversed) in the source code.
I'm getting a lot of Rel=Canonical warnings and double content warnings from Seomoz so I've been trying to insert
link rel="canonical" href="http://www.example.com/blog/my-awesome-blog-post"<
but the page won't retain the code for some reason. I'm entering the code in Plain Text, but saving the document as Full HTML.
Is there a better piece of code I can put in to demonstrate that the original blog page is the original source?
Thanks!
-
Hello,
are you adding it in the head area of your html right ?
-
Hi Ayaz,
I'm adding it near the bottom of the text. Does it need to be the first line of text in the blog post?
Thanks!
-
Hello again, you are missing the point this code is needed to be added in the head area of your source code, what is your html like
It is not a part of content/text etc.
-
take a look at this, it will help you activate automatic canonical hopefully : http://drupal.org/project/canonical_url
-
Hi Ayaz,
Wow, thanks for the heads up. I've been trying to put the rel=canonical code into the wysisyg editor this whole time.
So where should the code be placed? It's drupal, so should I make a block on the page where the rel=canonical text is supposed to be placed? what's the best way to put the code into the head of the source code?
Thanks?