Header Ads

How to stop blogspot blog from redirecting to other country domain

Google now redirects Blogger blogs to country-specific domains. For instance, if you open example.blogspot.com in your web browser, you will be redirected to example.blogspot.in if you are located in India or to example.blogspot.co.uk if you are accessing the blog from UK.

Google does country-specific redirection for selective censorship – that means they can easily censor or block a blog post, or other entire blog site, in one country but still serve that page in other geographic regions. Blog redirection only occurs if you are on a blogspot domain and not if your Blogger blog is on a custom domain.

If you are not happy with the idea of Blogger redirecting your blog to a different URL, you can add the following piece of code to your Blogger template and it will always serve the .com address to your visitors irrespective of their geographic location.

Go to your blog inside the Blogger Dashboard and choose Template. Then click the “Edit HTML” button followed by “Proceed.” Next, copy-paste the following code into the template after the <head> tag.

<script type='text/javascript'>
var blog = document.location.hostname.split(&quot;.&quot;);
if (blog[blog.length - 1] != &quot;com&quot;) {
var ncr = &quot;http://&quot; + blog[0] + &quot;.blogspot.com/ncr&quot;;
window.location.replace(ncr + document.location.pathname);

after pasting the above code, click on save. That should solve the redirect. I hope this help you a lot.

What are your thoughts about this? Share your views with us by using the comment post below.

Want to receive our next updates? Enter your email address:

Delivered by Ideasbeams

No comments

We appreciate your comment a lot. You can join our facebook group to stay up-to-date with us.
Have any inquiries, feel free to use the contact page. Thank you.

Click To Parse Your Adsense HTML Code
Powered by Blogger.