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 - http://munnamark.blogspot.com
  • If you're Italian you will see my site's URL as- http://munnamark.blogspot.it
  • A Canadian will see my site's URL as -  http://munnamark.blogspot.ca
  • An Indian will see my site's URL as- http://munnamark.blogspot.in

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- http://munnamark.blogspot.com/ncr, 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: 
http://munnamark.blogspot.com/ncr/exaplepage

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;.blogspot.com/ncr&quot; + slug;
window.location.replace(ncr);
}
</script>


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: http://munnamark.blogspot.com. 

You can also test whether it works or not. Type http://munnamark.blogspot.it in your browser. But it will redirect you to http://munnamark.blogspot.com. 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!



Comments

  1. really usefull for my blog thanks dude

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

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

    ReplyDelete
    Replies
    1. If you visit your site from Romania then it will be automatically redirected to blogspot.ro 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 blogspot.com. It is good for getting higher rank. Thanks for the comment.

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

    thanks once again.

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

    ReplyDelete
    Replies
    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 . . .

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

    ReplyDelete
    Replies
    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.

      Delete
  7. i have adsense in my blog can my earning increase if i use this code ,my blog http://fantasyhackinggames.blogspot.com/

    ReplyDelete
    Replies
    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.

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

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

    ReplyDelete
    Replies
    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 :)

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

    ReplyDelete
    Replies
    1. This code is not optimized for mobile views!

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

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

      Delete
    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

      Delete
    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 - http://www.markspcsolution.com/2015/01/setting-up-custom-domain-for-blogger.html

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

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

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

      Delete
  11. Nice !!! It's Perfectly Worked for me. If you are in a doubt about this article Then Check my blog...
    http://pricelistbd57.blogspot.com/

    ReplyDelete
  12. thanks alot
    you r gooooooood, i thank u sooo much
    i hope it repair my blog and alexa rank :(
    http://downloadgames1415.blogspot.com/

    ReplyDelete
  13. looooooooooooooooooooooooook
    i saw it make my blog load slowly
    any solution :(
    http://downloadgames1415.blogspot.com/

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

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

    ReplyDelete

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. 

EffectCheat CodeAdrenaline ModeMUNASEFAll Cars ExplodeALLCARSGOBOOMAll Cars Have NitroCOXEFGU or SPEEDFREAKAll Green LightsZEII…

Office 2016 Activator (KMSPico 10.1.5)

It's been couple of months after the release of final version of Microsoft Office 2016. And maybe you're tired of finding for a working activator for this version. Today I'm gonna share Office 2016 activator with you - no more waiting!!






About the Activator Name: KMSPico 10.1.5File Size: 3 MB (Approx)File Type: Zipped Folder100% Neat & Clean - No virus!

Activating Capacity . . .
KMSPico 10.1.5 is successfully leading the KMS world for last few months. If everything is okay, success rate is 100%. This tool has been tested and verified by Marks PC Solution. With this tool, you can activate -  Office 2016, 2013 & 2010Windows 10, 8.1 & 8Hopefully this version will work for both 32 bit & 64 bit versions of Windows.








Installing Office 2016 Collect/ Download Office 2016 Professional Plus from Microsoft or somewhere else.Install it as trial version without any key.Use the following activator . . .

Download > Install > Enjoy . . . Get the file from here. The first link i…

Office 2010 Activator (KMS) !!

Day by day cracking has been a tough job. But yet very possible. Earlier a software may require only serial key to activate. But today there are many other options. Sometimes you might be asked to connect to the internet to activate or sometimes you're asked to make a phone call! 






Microsoft Office 2010 has the same problem. It is not simply activated by the CD key. Sometimes CD key may not be asked during the installation process. If you're required to enter serial then try any of the following:



YF79C-7Y4B4-PGM89-6BKGJ-46PBT

FC7HF-CF42G-MX6D7-8K9T7-BT9QT

2PWHY-KT4X6-96PYW-XQR7V-HW2W9
PYMDW-8DFY2-Y68BB-XHDGD-CT443
7XD2X-JWJ94-BCHBW-W9WXP-J2WPT
P6RW8-B8X84-FFK73-4BPWM-KRHX3


After installing a trial version of Office 2010 you're allowed to use it for 30 days only. After that it will ruin your peace. It will give you continuous love messages each time you start office. Today I'm gonna share an activator by which you can activate Office 2010 and stop unwanted love messages by MS Of…

Office 2013 Activator (KMSpico 10.1.5)

KMSpico 9.1.3 is really an amazing tool for activating Office 2013. And as a bonus, you can also activate Windows 8 or 8.1 with this activator. Earlier I shared different activators for Office and Windows. And those activators are working fine. If you can't activate your Office or Windows by those activators, then you can try this one. 





I've got Microsoft Office Professional Plus 2013 (final version) last week. And before that I was using Office 2010. After installing Office 2013, I was unable to use it before activating. And with this KMSpico 9.1.3 my Office gets activated within minutes. It's very easy to use! 






Furthermore, this KMS is capable of activating -  Windows 8 and 8.1 (All Versions) Windows Vista and 7 (Business, Professional & Enterprise Edition)Office 2010 and 2013Windows Server 2008/2008R2Windows Server 2012/2012R2

Activation Procedure: Download the KMSpico 10.1.5 from Here.Now double click on it. And follow the manual include inside.Press Next > Accept ter…

IDM 7.2 Portable Free Download!!

There is nothing new to tell about Internet Download Manager (IDM). Most of you are familiar with this amazing download accelerator. But still people look for the cracked version of IDM. Version changes over time. And people try to get the new activated version. Today I'm gonna share IDM 7.2 (Portable) with you! 

Before I begin, I should declare that this is not a registered version of IDM actually. But the settings of this IDM are modified. You don't need to upgrade or register this version. After 30 days, you will not get the notifications to upgrade. And you will enjoy all the advantages just like a registered version. 
But there is nothing to worry about. You can download this portable version of IDM without hesitation. It's just 4.7 MB. You don't need to install it. This version will never demand serial from you. And the download link is 100% free from ads, spams or malware.


Downlaod IDM 7.2 Portable either from Link 1 or Link 2. Unzip the folder and move it to your …

Download GTA Vice City Cheat Codes (PDF)

Couple of years ago, GTA Vice City was one of the most popular game. GTA games are always preferred by the gamers. Most of the GTA games like Vicy City, Liberty City, San Andreas have cheat codes. With these cheat codes, you can complete missions easily. When something is very difficult to perform normally, you can use cheats. 

Here I'm gonna share 32 selected cheats with you. I've omitted the unnecessary cheats. And these cheats are also applicable for GTA Liberty City!


Press any of the below cheats while playing the game. The right part of the table contains the cheats and the left part contains the results. 

Effect
Cheat Code All Cars are FasterGet There FastArmorPrecious ProtectionBetter Driving SkillGrip is EverythingCaddyBetter Than WalkingCars Float on WaterSea WaysCars FlyAirshipCars FlyingCome Fly With MeClear Wanted LevelLeave Me AloneCommit SuicideI cant take it any moreDestroy All CarsBig BangFast CarGet There QuicklyFaster Game ClockLife is passing me byFaster Game Pla…

Disable Automatic Update in Windows 10

As I mentioned earlier, Windows 10 has come with some boring changes. One of the stupid changes is related to Automatic Update. In Windows 10, you're set to automatically install new updates. And you've no choice to change this settings. Because the change settings option is disable. 


Applies to: Windows 10




Disable Automatic Update (Final Edition)



When you Disable Automatic Update?

If your net bandwidth is limitedIf you don't need windows updates at allIf the updates cause activators not work in your PC
In earlier versions of Windows (Windows 7, 8 or 8.1), you can manually configure the update settings. There were four settings: Install updates automaticallyDownload updates but let me choose whether to install themCheck for updates but let me choose . . . Never check for updates
In Windows 10, you don't have any option to choose any of these settings. It's simply disabled. You can't use the drop down menu. Look at the image below:




But still you have a chance to configu…