Header Ads

  • Recent Posts

    Recent Posts:

    How to prevent your blogger blog from redirecting to country specific domains.

    Google generally redirects its blogger blogs to country specific domains. It means when you will try to open a blog named  xyz.blogspot.com in your internet browser then if you are browsing from India then you may be redirected to xyx.blogspot.in . If browsing from UK then it will be like xyz.blogspot.co.uk  .

    This is done by Google due to prohibition of some content in those countries. By this method they can easily block any website or blog or some part of it in that particular country or some part of that region.
    Following are some countries where blogger does this:

    India(blogspot.in),Mexico(blogspot.mx),Australia(blogspot.co.uk),Argentina (blogspot.com.ar),UK(blogspot.co.uk),Brazil(blogspot.com.br),Japan(blogspot.jp),            Portugal (blogspot.pt),NewZealand(blogspot.co.nz),Spain(blogspot.com.es),Canada (blogspot.ca),Sweden (blogspot.se),Italy (blogspot.it),France (blogspot.fr)

    There are many disadvantages for country specific domains. Your website or blog traffic will be different from different places of the world. Your social medial followers will be different from different places. So we should avoid country specific domains. In you blogger blog you after change in some html code you can prevent blogger from redirecting to country specific domains. Just go to template --> edit html -->proceed. Now paste the following code after <head> tag:

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

    Save the template and now your blog will always operate on blogspot.com url.

    No comments

    Post Top Ad

    Post Bottom Ad