Hello friends today I am here with you to discuss about “Disable Blogger Redirection to Local Domains ?”. If you are a blogger, running your blog on BlogSpot.com then you might have noticed that sometimes your site is redirected to country specific URL. But it doesn't happen for all the countries. Maybe 17 - 20 countries have their own blogger domain. For rest of the countries, Google will implement the local domains for blogger blogs very soon!. See our previous post on Counting Characters online.
Let me clear it for you…
All of us know that blog running on blogger usually have sub-domains – http://yoursitename.blogspot.com, but if you are visitors from other countries have different domains mentioned in their browers
For Example :
I think now you might have understood the importance of using this code . . . .
Feel free to ask if you have any doubts on this topic.
All of us know that blog running on blogger usually have sub-domains – http://yoursitename.blogspot.com, but if you are visitors from other countries have different domains mentioned in their browers
For Example :
- If you are Indian, then you will see http://yoursitename.blogspot.in instead of http://yoursitename.blogspot.com.
- If you are a Canadian, then you will see http://yoursitename.blogspot.ca instead of http://yoursitename.blogspot.com.
- If you’re an Italian , then you will see http://yoursitename.blogspot.com instead of http://yoursitename.blogspot.com.
- Your social stats (+1, Likes, Tweets, fb shares, pins, digg etc.) may fall dramatically due to the variations in domain.
- Your blogs search ranking might be affected.
- If blogger is banned in a specific country with the help of local domain, your site can't be visited from there.
Prevent Blogger's from Redirection
- Go to Blogger.com
- Login to your Blogger Dashboard.
- Now go to Template option.
- In Template Option, Click on Edit HTML.
- Hit on the template box and using Ctrl + F find for this code.
<head>
- After you find the above code, copy and paste the below code just below the above code.
<script type='text/javascript'>
var blog = document.location.hostname;
var slug = document.location.pathname;
var ctld = blog.substr(blog.lastIndexOf("."));
if (ctld != ".com") {
var ncr = "http://" + blog.substr(0, blog.indexOf("."));
ncr += ".blogspot.com/ncr" + slug;
window.location.replace(ncr);
}
</script>
- Look at the image below.
- Save your template.
What about the Registered/ Custom Domain?
If you blogger blog has a custom domain like .com or .net you don't need implement this code because the redirection is not applicable for a site with custom domain.I think now you might have understood the importance of using this code . . . .
Feel free to ask if you have any doubts on this topic.


No comments:
Post a Comment