How to disable Country Domain redirects specification in Blogger.


disable this blogger country domain redirects specification add below code in blogger Recently in the google blogger site the country specifications domain redirects has made changes in the domain name of bloggers,who are running free domain with blog name has their sub-domain.
(Example:-Myblog.blogspot.com redirecting to Myblog.blogspot.in) in India.





To disable this blogger country domain redirects specification add below code in blogger

1.login to blogger.
2.Design or template
3.Edit html
4.Search for <head> using crtl+f  shortcut key
5.Add the below code after the <head>
<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>
6.That’s all.

No comments:

Post a Comment

Please comment the message if you like post or any trouble