Saturday, November 7, 2015

How to Stop Blogger from Redirecting Country Specific Domain


How to Stop Blogger from Redirecting Country Specific Domain

 

 

Steps to configure 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”

    Then click on View Blog

Load comments


EmoticonEmoticon