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
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