Skip to main content

How to Disable Blogger Redirection to Local Domains?

How to Prevent blogger from redirecting to country-specific url

If you're running a blog in blogger platform, you should notice, sometimes your site is redirected to local domains. I mean your site is redirected to country specific URL. But it doesn't happen in all countries. Maybe 15 - 20 countries have their own blogger domain. But Google will implement the local domains for blogger blogs in other countries very soon! 

Let's give me an example: 

You know the URL of Marks PC Solution is -
  • If you're Italian you will see my site's URL as-
  • A Canadian will see my site's URL as -
  • An Indian will see my site's URL as-

Okay fine! Blogger has its own local domains for different countries. But what's wrongwith this country specific URL? There are a number of problems: 
  • Your social stats (+1, Likes, Tweets) may fall dramatically due to the variations in domain. 
  • Your search ranking might be affected. 
  • If blogger is banned in a country with the help of local domain, your site can't be visited from there!   
Though Google says, they are trying to minimize the negative consequences of hosting blogger. But why are you waiting for Google's effort? You can force local domains to redirect to .com version of your site with a simple code! 

World map indicating blogger blog visitors

Prevent Blogger's from Redirection: 

Officially Google never mentioned any permanent way to stop redirecting. But it said if you type /ncr just after the domain name for example-, then it will not redirect to your local domain. 

And if you want to do this for individual post then it should be like that:

Anyway, as a blog master your shouldn't let the visitors follow any boring way to prevent redirection. Because you can control the redirection by the code below! Okay let's try: 

  1. Make sure you're signed in to your blogger's control panel I mean design or dashboard.
  2. Now go to the template option. (Backup your template if necessary)
  3. Click on Edit HTML. Now you can see the code of your template. 
  4. Hit on the template box and Press Ctrl+F to enable search within the code box.
  5. find the <head> of your template and then copy the code below and place it just below the head tag. (Look at the image below)
  6. Save the template. Done! 

<script type='text/javascript'>
var blog = document.location.hostname;
var slug = document.location.pathname;
var ctld = blog.substr(blog.lastIndexOf(&quot;.&quot;));
if (ctld != &quot;.com&quot;) {
var ncr = &quot;http://&quot; + blog.substr(0, blog.indexOf(&quot;.&quot;));
ncr += &quot;; + slug;

Prevent your blog from redirecting by a simple code

From now and then your visitors will only be able to visit the .com version of your site. I mean like that: 

You can also test whether it works or not. Type in your browser. But it will redirect you to Also check this for your site. 

Removing the Code: 

I don't think it is necessary. For any reason, if you are reluctant to use this code, follow the steps above again. And then at the 5th step, delete the code and save your template. Or if you have a backup of your template, you can also restore it. But deleting the code is much easier. 

What about the Registered/ Custom Domain? 

If you blogger blog is registered I mean if you have a custom domain like .com or .org you don't need implement this code. Because the redirection is not applicable for a site with custom domain. 

What happened if blogger is banned in a country? 

Naturally when blogger is banned by the Govt. of a country the visitors from that country will not be able to see your site. But they will be able to visit the .com version of your site by  using /ncr just after the domain. But if you use the above code in your site, visitors will automatically be able to visit your site!  

I think now you understand the importance of using this code . . . :) 

Stay with Marks PC Solution to get more interesting IT topics!


  1. really usefull for my blog thanks dude

  2. Thanks bro....,
    It's working like a charm...

  3. I need one for Romania! :) Or i just have to remove .com tag and add .ro ?

    1. If you visit your site from Romania then it will be automatically redirected to domain.

      But I didn't test this switch for local domains. You can test it by replacing .com with .ro - Hopefully this will work for you.

      But I suggest you not to do so. Try to make your visitors visit your site as It is good for getting higher rank. Thanks for the comment.

  4. hey bro thanks for this help ... now my new year blog open with .com extension... really you are advanced blogger..

    thanks once again.

  5. This doesn't work if they are on mobile and the "?m=1" is on the end of the URL. You got a fix for that?

    1. Though it's not very important, but thanks for informing me. I will try to modify the code. And thanks for being with Marks PC . . .

  6. why haven"t you used it on this blog?

    1. Few days ago, I've removed the code from my site. It slows down the site by 1 or 2 seconds. But you can use it if you don't think about loading time.

  7. i have adsense in my blog can my earning increase if i use this code ,my blog

    1. Not actually. It doesn't have much impact on AdSense earnings. But it will help you to boost your Alexa ranking, social sharing etc.

  8. Hmm. I'm getting "URL must not end with a path"

  9. how come you don't use this code on your own blog?

    1. Actually it reduces site's loading little bit. As it redirects your site to the .com so it takes little time. That's why I am not using this currently. But I will use this again. Anyway, thanks for observing my site :)

  10. Hi and thanks for the excellent info. It's workig properly on my desktop but it seems to not work on mobile devices,... Any idea why?
    Thanks in advance,

    1. This code is not optimized for mobile views!

    2. Thanks for the quick reply! Is there any way to optimize it for mobile views? I've found out that I’m losing revenue with Adsense due to this blog redirecting thing,... I run a bilingual blog with readers all over the world and only the USA readers were accounted for on Adsense.

    3. Oh! That's bad. I will search for is there any such option. Anyway, why don't buy a custom domain?

    4. I might buy a custom domain and integrate it with blogger, as you suggest. I'd like to buy one from google domains but they are not available in Portugal. I'm just curious how AdSense people let this sort of things happen, because the ads are shown, sometimes they are clicked and a few minutes after the clicks are discarded (and the impressions/pageviews of that session are also discarded). I don't get my money and I think they don't get theirs either. It's a major glitch, in my opinion

    5. Hmm . . . yeah. But you shouldn't wait for Google Domain. Remember, after changing the URL, you get a lot of works to do. So, change it as soon as possible.

      This may help -

      By the way, I haven't got anything regarding mobile sites to stop redirection.

    6. Thanks for all the help, I really appreciate it!

    7. Why don't you upgrade your blogger profile to Google Plus profile?

  11. Nice !!! It's Perfectly Worked for me. If you are in a doubt about this article Then Check my blog...

  12. thanks alot
    you r gooooooood, i thank u sooo much
    i hope it repair my blog and alexa rank :(

  13. looooooooooooooooooooooooook
    i saw it make my blog load slowly
    any solution :(

    1. Yeah, redirection takes some more time to load your site

  14. thanks so much its working perfectly on my blogspot blog.Thanks a million


Post a Comment

Popular posts from this blog

GTA San Andreas Cheat Code (PDF)

After Vice City, San Andreas is the most popular game released by Grand Theft Auto (GTA). Usually GTA releases role playing game. San Andreas is such a game where you can act like a person. You can do everything. You have to take part in missions and complete them.  To make your missions easier, there are lots of cheat codes. If you can properly apply these codes, the tough parts of the game will be easier. Cheat codes are somewhat like keyboard shortcuts of computer programs.  I've shared 63 cheat codes below. There were more cheat codes in my collection, but I've omitted the less important cheats. Effects or result of the cheats are on the left side, and the codes are on the right side.  You can copy the following codes in your PC. And for your convenience, I've also uploaded a PDF file of these codes. You will find the download link at the bottom.  Effect Cheat Code Adrenaline Mode MUNASEF All Cars Explode ALLCARSGOB

Rules for Bengali Typing in PDF (Bijoy Layout)

Bijoy is the most popular layout for Bangla typing. The layout was developed by Mostafa Jabbar. He is the pioneer of Bangla typing in computer. More than 90% people use his Bijoy layout for Bangla typing. Today, I'm gonna share a PDF file with you that contains the Bijoy Keyboard layout with English fonts! If your keyboard doesn't have bengali fonts then you can print this PDF file to know where the bengali fonts are located in your keyboard. Additionally this file contains all the necessary rules and tips which are essential for Bangla Typing.  Now there are many other software available for Bangla Typing Layout. Such as Avro Easy, Unicode, Unibijoy etc. And there rules are also somewhat different from Bijoy. And some of their layouts follow the same rules like Bijoy. Hopefully this PDF file will support most of the rules when a layout is similar to Bijoy Layout.  Click to enlarge the image Download the PDF file from the button below. Follow

Download Puzzle Flash Game - Save Them

Hey Flash Game Lovers! Today you're getting an amazing puzzle game - Save Them! It's a flash game and the download size is only 382 KB. In this game, you have to move 3 missionaries and 3 cannibals from one side to another through a boat. In any side, if the number of cannibals is more than the number of missionaries, then cannibals will eat the missionaries!  Download Save Them Download the game from the above link. It's a zipped file. Download size is only 382 KB! After downloading the game, you have to unzip it first. Then double click on the SaveThem to start the game.  How to Play? After starting the game, you will get the instruction. You have to make sure that in no side, the number of cannibals is not more than the number of missionaries. This is your only challenge. You have to take them from left side to the right side of the lake through a boat.  Press on a character to jump to the boat. Thus you can take any two of them a