Thursday, May 17, 2012

How to Redirect Blogger Blog .in Domain to .com Easily


How to Disable Country Specific Domain Redirection in Blog
  1.  Go to your Blogger Dashboard click on ---> Design tab ---> Edit HTML tab.
  2. Make sure to take backup of your Template before making any changes to your HTML.
  3. Now click on Expand Template Widgets check box.
  4. Search for </head> code in your Template. .
  5. Copy and Paste the following code BEFORE the </head> and Save your template and see the URL..
  6.  
    <script type="text/javascript">
     if ((window.location.href.toString().indexOf('.com/'))=='-1')
     { window.location.href = window.location.href.toString().replace('.blogspot.in/','.blogspot.com/ncr/').replace('.blogspot.com.au/','.blogspot.com/ncr/').replace('.blogspot.co.nz/','.blogspot.com/ncr/'); }
     </script> 

No comments:

Post a Comment