Blogger is the largest platform for free blogging. In past, Google introduced the country specific domain redirection in Blogspot. It means that your blog name redirect to country specific domain extension. For example, instead of viewing blogspot.com, your readers view their country specific domain extension. Indian people see "example.blospot.in" instead of "example.blogspot.com". This redirection is named ""country-code Top Level Domain" (ccTLD". It also gives 302 redirection names. Many people like mine don't like country redirection and wants to keep blospot.com extension. Today I am sharing a trick to Disable Country Specific Domain Redirection in Blog?
Some country with redirection names
Blogger does not introduce redirections for all countries. It mostly redirects on below mentioned countries.- Argentina [blogspot.com.ar]
- Australia [blogspot.com.au]
- Brazil [blogspot.com.br]
- Czech Republic [blogspot.cz]
- UK [blogspot.co.uk]
- Canada [blogspot.ca]
- France [blogspot.fr]
- Germany [blogspot.de]
- Hong Kong [blogspot.hk]
- India [blogspot.in]
- Sweden [blogspot.se]
- Italy [blogspot.it]
- Japan [blogspot.jp]
- Mexico [blogspot.mx]
- New Zealand [blogspot.co.nz]
- Portugal [blogspot.pt]
- Romania [blogspot.ro]
- Spain [blogspot.com.es]
Disable Country Specific Domain Redirection
- Go to your blogger dashboard and select your desired blog.
- Go to Blog Templates and Edit HTML
- Find </head> and below code paste just above it.
script type='text/javascript'> var str= window.location.href.toString(); if ((str.indexOf('.com/'))=='-1') { var str1=str.substring(str.lastIndexOf(".blogspot.")); if (str1.indexOf('/')=='-1') { var str2=str1; } else { var str2=str1.substring(0,str1.indexOf('/')+1); } window.location.href =window.location.href.toString().replace(str2,'.blogspot.com/ncr/'); } </script>Now all work has done and checks your blog. It does not redirect to country specific extension.
Comments
Post a Comment