Scroll Down and click on Go to Link for destination
Congrats! Link is Generated
Hello bloggers , this time irvandev blog will share a tutorial on how to prevent your blog from redirecting to specific country domain , why should it be prevented? because this will impact to our blog , such as the following excerpt from google:
"Migrating to localized domains will allow us to continue promoting free expression and responsible publishing while providing greater flexibility in complying with valid removal requests pursuant to local law. By utilizing ccTLDs, content removals can be managed on a per country basis, which will limit their impact to the smallest number of readers. Content removed due to a specific country’s law will only be removed from the relevant ccTLD."
Please do your self-explanatory from the above quote :D
How to prevent blogger from redirecting [images:pixabay.com] |
How to prevent blogger from redirecting to country domains
1. Login to your blogger panel admin
2. Click On Template » Edit HTML
3. Find this code Ctrl+F ]]></head>
4. Then add the following javascriptcode just above the code ]]></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>
5. Click save and see the results, good luckYou are done!