How To Disable Country Specific Url in Blogger

By

April 9, 2012InternetNo comments

0 Flares Twitter 0 Facebook 0 Google+ 0 Pin It Share 0 LinkedIn 0 0 Flares ×

How To Disable Country Specific Url in Blogger

Blogger blogs are redirecting to the country specific urls. For example: If you stay in India , then if you visit a blogger blog called http://theethicalhackerz.blogspot.com, then the url of that blog is changing to http://theethicalhackerz.blogspot.in. In this tutorial i am gonna show you how to disable the country specific url in Blogger.

1. Go to Blogger Dashboard.
2. In Dashboard go to Choose Template -> Edit Html -> Proceed.
3. Now copy the following code below the “head” tag.

[Normal_Box]

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

[/Normal_Box]

 

 

4. Now save the template. From now on wards your blog will not be shown as country specified url.

Get Free Updates in your Inbox
Follow us on:
facebook twitter gplus pinterest rss
Tags:

Leave a Reply

0 Flares Twitter 0 Facebook 0 Google+ 0 Pin It Share 0 LinkedIn 0 0 Flares ×