How to Stop Blogger From Redirecting Your blogspot.com Blog to Country-Specific URLS

Are you using the .blogspot.com URL like me? Did you notice that some of your blog post are redirecting to country-specific URLS? Just for example, sometimes, my blog which has a URL of http://webjunkiesblog.blogspot.com/, are being redirected sometimes to country-specific URLS like http://webjunkiesblog.blogspot.jp, http://webjunkiesblog.blogspot.co.uk, etc.

So what's my point?

I have searched for answers on why my main blog (not this blog) has decrease in adsense revenue, and I have found out that this country-specific URL redirection might be one of the reasons I am currently low in adsense earnings.

According to Digital Inspiration owned by Amit Agarwal, this country based URL redirection is likely to impact your Blogger blogs in a not so positive manner. For example:

The social stats – like your Facebook Likes, Google +1s and Tweet counts – for your blog posts may be reduced as the URLs for the same blog post will be different for different visitors.

You will have a similar problem if you are using an external commenting platform like Disqus or Facebook Comments because the blog URLs will be different even when the underlying page is the same.

Also, if canonicalization isn’t implemented properly, it may cost you some Google juice as external websites may link to your country-specific pages.

Some users have reported a dip in Google AdSense earnings when pages are served through country-specific domains.

As I have known Digital Inspiration as one of the most reliable sources in terms of blogging, I have concluded that this country-specific redirection being implemented by Blogger might be the reason why I'm having low cpc and ctr on my adsense, in my main tech blog.

Luckily, Digital Inspiration posted a solution on how to resolve this problem.

How to Stop Blogger From Redirecting Your blogspot.com Blog to Country-Specific URLS

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

  // Written by Amit Agarwal

  /* Get the full URL of the current blogger page */
  var blog = document.location.href.toLowerCase();

  /* Do not redirect if the domain is .com already */
  if (!blog.match(/\.blogspot\.com/)) {

    /* Replace the country TLD with .com and ncr switch */
    blog = blog.replace(/\.blogspot\..*?\//, ".blogspot.com/ncr/");

    /* Redirect to the new .com URL in the current tab */
    window.location.replace(blog);
  }

  // Source: http://labnol.org/?p=21031

</script>
Click the Save Template button and now your Blogger Blog will always serve with the blogspot.com URL.

How to test if the script is working already?

You can test the script by simply searching for your domain on Chrome, Firefox or any web browser with the country-specific URL.

For example, I have searched for webjunkiesblog.blogspot.co.uk



but in the end, it still landed to by blogspot.com blog.


and that proves that you have successfully Stop Blogger From Redirecting Your blogspot.com Blog to Country-Specific URLS.

Credits: Special thanks to Digital Inspiration for making this very helpful guide to newbie bloggers like me.

Subscribe to receive free email updates:

0 Response to "How to Stop Blogger From Redirecting Your blogspot.com Blog to Country-Specific URLS"

Post a Comment