Are you using non premium domain as http://example.blogspot.com?
If yes then you can see that if your blog getting open by other country so it is redirecting to other country extension. For example - http://example.blogspot.in.
Here, You can see that .in which is from India, .pk from Pakistan, .np from Nenal and so on. But you can stop it.
You just need to add some code and your URL will not redirect and it will remain with .com
You just need to add some code and your URL will not redirect and it will remain with .com
Step 1. Login to your blog then Click on Template and then Edit HTML. Click anywhere in code window one time only and press Ctrl+F for open Search bar and paste below code.
</head>Step 2. Copy below code and paste just before or above of </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>Step 3. Save it. That's it!
No comments:
Post a Comment