Solve Problems Related To BlogSpot Canonical URLs


blogspot country specific urlsAs we mentioned earlier that Google has slowly started converting all blogspot blog URLs to country specific Domain addresses. Your visitors will see their country's top level domain (ccTLD) version of your domain. People living is norway will see a .blogspot.nr domain and those living in Pakistan will see .Blogspot.pk and so on. Blogger team has automatically added the canonical link element to all blogger templates by default in order to avoid its negative consequences with regard to search engine optimization. Everything seems normal except for social networking buttons and Facebook comments plugin. Most bloggers complained that the facebook comments are not displaying after blogger rolled in country specific Urls. Most social media counters can show wrong counts. So in order to solve all these problems we will need to make a slight adjustment to how your template is structured. The steps will be of course very simple and safe.

Caution!

If you are not experimenting any of the errors, problems and bugs I mentioned then you may simply ignore this tutorial and better drink a cup of coffee and watch the video on the right sidebar. :)

You may skip it also if you feel blogger will fix the problem itself very shortly because blogger team is responding quickly to these recent changes.

Solving Canonical URLs Problem

Correcting the bug in Facebook Comments

  1. Go To Blogger > Deisgn > Edit HTML
  2. Back up your template. You must always download a copy of your template before making any changes.
  3. Search a similar code like the one below:

<fb:comments colorscheme='light' expr:href='data:post.url' expr:title='data:post.title' expr:xid='data:post.id' migrated='1' width='520'/>

 

     4.   Replace data:post.url with

data:post.canonicalurl

 

     5.   Save your template and check to find everything back to normal.

Correcting Sharing Counters

Search for your sharing counters main code inside your template and where ever you find the following code:

expr:href="data:post.url"

 

Replace it with this:

expr:href="data:post.canonicalUrl"

 

Need help?

What did here was  replacing the dynamic url for posts with the canonical dynamic post url. This will not confuse the social networking sites in choosing the correct url for your blog which is your primary domain. If you are facing any problem related to country specific domains then feel free to post your comments. I would strongly recommend that buy a custom domain as soon as possible, instead of depending on a free domain which has no marketing value. Peace and blessings pals! :)

Need Quick Help within 24 Hours? ASK NOW



If you don't want to get yourself into Serious Technical Trouble while editing your Blog Template then just sit back and relax and let us do the Job for you at a fairly reasonable cost. Submit your order details by Clicking Here »

41 comments : Post Yours! Read Comment Policy ▼
PLEASE NOTE:
We have Zero Tolerance to Spam. Chessy Comments and Comments with 'Links' will be deleted immediately upon our review.

  1. Mohammad one of my blogspot blog is having the below error.how to fix it.
    We are sorry, but we were unable to complete your request.

    When reporting this error to Blogger Support or on the Blogger Help Group, please:

    Describe what you were doing when you got this error.
    Provide the following error code and additional information.

    ReplyDelete
  2. What abt Custom Domain users ? we have to do this ?

    ReplyDelete
  3. @Admin
    Where exactly are you seeing this error? While saving your template?


    @Haider
    Correct bro. This tutorial does not apply to bloggers with custom domains. :)

    ReplyDelete
  4. should i do it to my blog http://mybestfavourites.blogspot.com/ ?

    ReplyDelete
  5. @Mohammad No.
    When i Visit my blog i see the message.i cant see my blog
    all-celeb-pics dot blogspot
    help plz

    ReplyDelete
  6. How can we Fix validator.w3.org/ FREE.

    ReplyDelete
  7. hey mohammed i can't find the following codes :(... now what to do???
    if i buy custom domain den???

    http://nirmalmaza.blogspot.in/

    ReplyDelete
  8. Hello Mohmd, the 'rel=canonical' tag is missing but I can see this code 'b:include data='blog' name='all-head-content' code. Now, when I add this code link expr:href="http://fmwaweru.blogspot.com/" rel="canonical"/> below the <head>, I get this error undefined LHS of numeric is null before 29 in http://fmwaweru.blogspot.com/). What could be the problem? Also, if I've this code <b:include data='blog' name='all-head-content'/> present do I need to add the canonical tag?

    ReplyDelete
  9. wow, new thing for me.. i just know about it.
    thanks very much

    ReplyDelete
  10. I already solved this problem after viewing your post. Keep sharing.

    Ammar Ali recently posted 40 Best Free Great Looking Blogger Templates of 2011

    ReplyDelete
  11. Got a Nightmare today with Google+. Ghosh!!! they banned me.. what the hell??

    ReplyDelete
  12. PLZ ELABORATE HOW CAN WE MAKE OUR POSTS MORE SEO FRIENDLY WITH META TAGS MANUALLY:)

    ReplyDelete
  13. Hi Mohammad when I think of the canonical does it also has the same function as rel="nofollow"?

    ReplyDelete
  14. one more thing i want to hide certain pixels from bottom of my blogger like wen i removed navbar there was a gap left between i used this code
    body
    {
    margin-top:0px;
    position: relative;
    top: -50px;
    }
    can this be modified to hide pixels from bottom too plz help:)

    ReplyDelete
  15. Nyc post yr i jst love ur Blog... Nd recomende it to other's..<3

    How To Save Ur Blog From Sopa/pipa

    ReplyDelete
  16. @$hubham Meht@

    Another misleading anchor text.
    I am like a crawler on MBT from which you cannot hide :p

    ReplyDelete
  17. As salamu alyikum mustafa bhai!

    SO what you decided to keep your New Wordpress title ???

    I think it will be (OBT)ourbloggertricks.com or (MWT) mywordpresstricks.com

    mywordpresstricks.com domain still available on godaddy.com

    Allah hafiz

    ReplyDelete
  18. Thank you very much friend! its working perfectly.

    one doubt, how to change home page url code "data:blog.homepageUrl" into canonical url?

    ReplyDelete
  19. @yateesh

    Only if the counts of your sharing buttons are acting abnormal. Showing wrong counts

    @admin
    Unfortunately May be it got removed by blogger. Since the blog shares celebrity pics so there could be a violation of Image copyrights pal. Can you access it via dashboard? Your posts? If yes then please go to settings and export/backup all your posts.

    @jatin rohilla
    As I mentioned you don't need to add it if everything looks fine with your facebook plugin and sharing counters

    @Felix
    I have updated that code at Blogspot blogs 302 redirected

    It will work just fine now. :)

    @SAm
    Heard it for the first time. Does it happen even there? :p

    @Auren Lengkong
    No body it has a total different effect as I explained in my earlier posts. Nofollow concerns PageRank and canonical concerns issue of duplicate content.

    @Dr Lolz

    Remove top: -50px; from your body class. :)

    @MMK The Rocker
    We did purchase mywordpresstricks.com but we changed our idea and this new blog is a surprise which we will disclose next week. :)

    @Abdul Basith
    We can do that but we don't need to do because only the facebook plugin and sharing counters are having problem and not the homapage elements.

    ReplyDelete
  20. thanks friend tried as you suggested but no avail it just shows 50pixels above header image n hide those pixels if i put top: -50px; in the code.but i wanna hide 50 pixels from bottom from attribution side.plz do help

    ReplyDelete
  21. @Mohammad Mustafa Ahmedzai

    Yea they banned me because I had a word "Sexy" in my name. Come on I am Sexy.. What's your problem? :p

    I revived my profile and everything is fine, just I can't call myself as "Sexy". Now I am with my original name.

    ReplyDelete
  22. @ Mohammad
    thanks problem solved. i simply removed the cononical code.and i can access my blog now.

    ReplyDelete
  23. I have two problems with this.

    1st one : My sharing counters are showing "0". You can see it in the like it share it widget of mine in the sidebar.

    2nd one : The recent posts widget at the bottom in the footer is not showing.

    When i go to freen8apps.blogspot.com/ncr it's everything all right but it shows the above stated errors in freen8apps.blogspot.in ...

    Please help

    ReplyDelete
  24. i'm facing drop in traffic to my blogs because of this change made by google,Can i use this method to get back my traffic..

    StudentsCrunch

    ReplyDelete
  25. ///The comments plugin requires an href parameter./// this is the message iam getting fb comments plug in

    ReplyDelete
  26. hi guys. i need your help. i have just migrated my Blogger blog to my own domain (GoDaddy). my problem is that my Facebook/Twitter/Google share stats are reset to zero. is there a way to regain those? thanks a bunch!

    ReplyDelete
  27. This comment has been removed by the author.

    ReplyDelete
  28. At First when i applied it, it gave me hrf parameter error, which i resolved by adding migrated='1' to code as shown above. (hope it help to others) but when i'm done, its giving me warning belw comment box "Warning: this comments plugin is operating in compatibility mode, but has no posts yet. Consider specifying an explicit 'href' as suggested in the comments plugin documentation to take advantage of all plugin features."
    Then i realized, i am missing
    <link href="http://blog-name.blogspot.com/" rel="canonical"/>
    below head. which mustafa bhai told in his earlier post. i applied it and viola !! :)

    And mustafa bhaai. i've emailed you so many times regarding "readmore" issue of monop template. its ruining my blog. i am really very disappointed at this from you bro :(

    ReplyDelete
  29. If we remove canonical url from blogger then what will be effect on our blog. Will it loose search positions.

    ReplyDelete
  30. Hi
    I have a custom domain. My problem is that my thumbnails do not show when I post on Facebook. My url is www.sahrishadeel.com

    If I share a blog post by adding 'blogspot' to my domain, e.g., sahrisahdeel.blogspot.com/blog-post-title , it shows the thumbnail but this solution is not working for me as I have Like button in my blog posts and this problem is messing it up so much.
    Can you please help me with this?

    Regards

    ReplyDelete
  31. @Sahrish Adeel

    My blogspot url is sahrishadeel.blogspot.com

    ReplyDelete
  32. I am from india, my blog "healththruayurveda.blogspot.com" redirect to .in but in canonical it show with .com, should i change it to .in

    ReplyDelete
  33. I want to remove my canonical url issue on my blogger blog, http://freecareerjobs.blogspot.com

    I tried your this articles, does not works for me.
    Email me @ er.kunal2006@gmail.com

    ReplyDelete
  34. I think we're going to support this in allpicx as well funny pic

    So this means that two large crawlers now support this spec. (We crawl for dozens of large search startups).

    We already support storing redirect URLs. We also find the canonical URL for redirected URLs (feedburner, doubleclick, etc) so this is just one more extension to that standard.

    Regards,
    Chetan

    ReplyDelete
  35. This is a different story, I have been trying to restore my deleted blog(deleted by so called spam robot. My blog is genuine nothing against the policy as far as I know and I saved placed lot of writings there roughly 10 years, please help me how to reach blogspot team to solve because my restoring attempts all in vain for 2 months.

    ReplyDelete