Archive Pages Design$type=blogging

How to Prevent Blogger Country Specific URL Redirection

Hi friends, today I am writing about an important issue that badly affecting blog views and SEO, and also I am introducing a perfect so...


Hi friends, today I am writing about an important issue that badly affecting blog views and SEO, and also I am introducing a perfect solution for this issue.

I am a blogger from the India, I created a blog with address www.cybup.blogspot.com but  when I open my blog that will automatically redirect to blogspot.in as a country specification.
If you have this trouble?
Here’s a complete list of country-specific redirection in 15 different countries.

  • India : blogspot.in
  • France : blogspot.fr
  • Sweden : blogspot.se
  • Spain : blogspot.com.es
  • Portugal : blogspot.pt
  • Brazil : blogspot.com.br
  • Argentina : blogspot.com.ar
  • Mexico : blogspot.mx
  • Australia : blogspot.com.au
  • UK : blogspot.co.uk
  • Japan : blogspot.jp
  • New Zealand : blogspot.co.nz
  • Canada : blogspot.ca
  • Germany : blogspot.de
  • Italy : blogspot.it


Prevent Blogger Country Specified URL Redirection

Defects of Blogger Country Specified URL Redirection.


  • You will have a similar problem if you are using an external commenting platform like Disqus or Facebook Comments.
  • The social stats – or Facebook Likes, Google +1s and Tweet counts – for your blog stories may be reduced as the URLs for the same blog post become different from different visitors.
  • Also, if canonicalization isn’t implemented properly, it may cost you some Google juice as external web sites may link to your country-specific pages.

How to prevent it 

We can prevent this issue using a simple JavaScript on Blogger <head> section.
Steps for adding Blogger Country Specified URL Redirection Prevention script in your blogger.

  • Open your blog dashboard and go to Template section.
  • Click Edit HTML 
  • Find <head> tag.
  • Copy the below code and just paste after the <head> tag.
  • Click on Save Template.
<script type="text/javascript"> var blog = document.location.hostname.split("."); if (blog[blog.length - 1] != "com") { var ncr = "http://" + blog[0] + ".blogspot.com/ncr"; window.location.replace(ncr + document.location.pathname); } </script>

What is the code doing?

it gets the URL of the current Blogger page and if isn’t served from the .com domain, it replaces the country specific TLD with the blogspot.com URL. It also adds  .blogspot.com/ncr to redirect the visitor to the blogspot.com address.

How does this post? is it really helpful to you? leave a comment.
Please share this post to make blessed your blogger friends


COMMENTS

BLOGGER: 9
Loading...
Name

AI Android Blogger CSS Facebook Featured Freebie Google HTML Internet Javascript Open Source Post SEO WebDesign Widget Wordpress
false
ltr
item
Cybup: How to Prevent Blogger Country Specific URL Redirection
How to Prevent Blogger Country Specific URL Redirection
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgt-SpyweoCxZnvAae6V2QXG7cvDv9Dg7UrPxSlf7v-oNlT_JBGK8rxN6O3ARG1rlPj-oRIZtWAXNjAyqnI_OWLLXzMEsTbZXNjt4exTK3U1Yriklwys-wzAZINycL3JGl1oaZ_iasZyDw1/s640/Prevent-Blogger-Country-Specific-URL-Redirection.jpg
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgt-SpyweoCxZnvAae6V2QXG7cvDv9Dg7UrPxSlf7v-oNlT_JBGK8rxN6O3ARG1rlPj-oRIZtWAXNjAyqnI_OWLLXzMEsTbZXNjt4exTK3U1Yriklwys-wzAZINycL3JGl1oaZ_iasZyDw1/s72-c/Prevent-Blogger-Country-Specific-URL-Redirection.jpg
Cybup
http://cybup.blogspot.com/2015/09/PreventPrevent-blogger-country-url-redirection.html
http://cybup.blogspot.com/
http://cybup.blogspot.com/
http://cybup.blogspot.com/2015/09/PreventPrevent-blogger-country-url-redirection.html
true
1938789928030985205
UTF-8
Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago