If you have a blog, e.g yourblog.blogspot.com,the blog might be redirected to yourblog.blogspot.in for some countries.
In other countries,it might be .com.au , .com.uk , .tketc.
To do this,all you have to do is add some little javascripts into your blogger template.
Go to Design >> Edit HTML.Backup your template in case something goes wrong.
Check the box next to
Expand Widget Template and search for </head> by pressing ctrl+f.
Now,add the following code just ABOVE </head> tag.
<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>
Preview your blog,& save the template.Its as simple as that!!!
Tidak ada komentar:
Posting Komentar