How To Remove Blogger Country Specific URL

Ganda Bacha | November 20, 2012 | 0 comments

-->

 A few month before blogger team launches a new option that redirect the blogspot blog URL to country specific URL if your blog is on free domain i.e on .blogspot domain . A blogspot blog automatically on blogspot.com  whenever it created but recently blogger team launches this option. Suppose a reader in India sees a  xyz.blogspot.com domain then it will redirect/forward to xyz.blogspot.in or a France user will see  xyz.blogspot.fr. URL redirection or URL forwarding is a technique to make a web page available for more than two URL.

The main reason to introduced this service to easily block a particular blog on a specific country not on other region but it have some  negative issue also. Crawlers will find same content on multiple domain that will lead
to duplication of content but Google team working hard to solve this negative issue. If you want to remove this service then there is no automatic option provided by team to switch off this service  but Amit Aggarwal, a personal technology columnist, give a fantastic JavaScript code to remove url re-direct.

Stop Redirecting Blog To Country Specific URL


  •     First Of all backup your blogger template then proceed.
  •     Go To Template /  Edit HTML in dashboard.
  •     Click Edit / HTML and then proceed.
  •     Find following piece of code in blogger template.

 <head>

  • And paste the following code just below the <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>

Whenever system wants to change the .com domain the above JavaScript code will deny its request.

The FAQ part of this topic is on the support page of the blogger and can be viewed from here.

After receiving no negative feedback from both readers and bloggers about this redirecting url we can say that it will not affect SEO of your blog.

I think above tutorial is cleanly written so that it become easy to understand to every reader but if you have any query in your mind then comment below to clear that.

Hope you like this post of ours, to read more post of similar and many more on blogging, enter your email and subscribe with us to receive updates of this blog via email or subscribe to as a reader.

Category :

About Author Ganda Bacha :
I am a Graphic Designer, Founder of Caresofts I am Web Developer And Graphic Designer, SEO Expert, Web Designer, Programmer, Software Engineer also Expert in CSS and HTML, PHP, jQuery, SEO, Java, Photoshop, After Effects, Dreamweaver, Flash, Acrobat, Illustrator, Premiere Pro, CorelDRAW, Visual Basic, C++, ASP.Net, Microsoft Access, Excel, WORD, Publisher, SQL, Windows Embedded, AutoCAD, 3D Studio MAX, Game Development, Windows Movie Maker, Maya, Urdu Inpage, FreeHAND MX You Can Find me on Google+1 , Twitter and Facebook . See More..... just vist my Website Regularly!

0 comments

Click to go to top Click to comment