Now you can Subscribe using RSS

Submit your Email

Saturday, February 7, 2015

How to prevent blogger from redirecting to specific country domains

Irvan Dev

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 []

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 += "" + slug;
5. Click save and see the results, good luck

You are done!

Irvan Dev / Author & Editor

I am Irvandev, I m a fairly easy blogger and it's, untill today My spouse and i still love writing and submitting articles for blog site "Blog Irvandev".


Post a Comment

Coprights @ 2016, Blogger Templates