Wednesday 19 September 2012

How to restrict Google to change country code domain of your blog

How to restrict Google to change country code domain of your blog

How to restrict Google to change country code domain of your blog
you might have notice that your blog domain gets changed from .com to .in .cu .pk .au etc depending upon the country of the viewer..!!!
As this also cause poor page ranking in search result ..!!!
But many blogger dont want their Blog domain to be changed...!!
so what to do???

iGAWAR presents a unique trick to restrict google to change your blog/website domain. This tutorial will explain how to maintain same domain (.com) for blogger..!!
you can see my blog url in address bar, itz igawar.blogspot.com  only..!!!

Change in domain countrywise also makes your pageranking goes down because search engine reads it as duplicate content..!!!! 

FOLLOW THESE STEPS TO APPLY THIS TRICK TO YOUR BLOG



  • Go to Blogger Dashboard --> Design --> Edit HTML
  • Backup your Template before making any changes to your blog.
  • Now Check Expand Widget Template.
  • Press Ctrl + F and search the code shown below.


<head>



  • Paste this code just below the <head>

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


Use this trick and let me know that this works for you or not..!!
If you have any problem with this Trick then feel free to ask in comment box below..!!

Keep visiting @iGAWAR

No comments:

Post a Comment