How to prevent blogger from redirecting to specific country domains

ErnasLie
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 to specific country domains
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 luck

You are done!

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.