How to Stop Blogger from Redirecting Country Specific Domain

 

Stop Blogger from Redirecting Country Specific Domain
Few Steps to Stop your blogger blog to stop country specific domain redirection-
Login to Blogger account 
Click on Template > Edit HTML 
Click in the Coding rectangle box, and then click “Ctrl + F”. Now check with code<head>. Press Enter
Copy the redirection script given below. Now paste the Script after the <head>.

 

<script type="text/javascript">
var blog = document.location.hostname.split(".");
if (blog[blog.length - 1] != "com") {
var ncr = "http://" + blog[0] + ".blogspot.com/ncr";
window.location.replace(ncr + document.location.pathname);    
}
</script>

 - Click on “save template”
    Done ! Check Your Blog

Post a Comment

Previous Post Next Post