How to Stop Redirecting Country Specific-Domain in Blogger

How to Stop Redirecting Country Specific-Domain in Blogger




Does your blogger blog redirects to its specific country based domain ? like if someone is visiting your blog from india then your blog address will be (abc.blogspot.in) other then (abc.blogspot.com) so in order to stop re-directing the specific country based domain, you have to follow the steps as mention in the video to understand how it used :)

So Here is the Code:

<script type='text/javascript'>
  // Script for Redirection of URL

  /* 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\..*?\//, &quot;.blogspot.com/ncr/&quot;);
    /* Redirect to the new .com URL in the current tab */
    window.location.replace(blog);
  }
</script>




Want to Know ? How to Implement the Code in Blogger ? 

So Watch the Whole Tutorial on How to do it :)


How to Stop Redirecting Specific Country Based Domains in Blogger

Don't Forget to Subscribe my Channel for More Videos :)