Blogger blogspot redirect to a country specific URL

Do you want to stick to [yourblog] domain URL and don't want Blogger to redirecting to a country specific URL like [yourblog] for Australia? If yes, here is the solution. Before discussing the solution, lets find out why it is happening?
Blogger is doing this to provide more support for managing content locally. If they receive a removal request that violates local law, that content may no longer be available to readers on local domains where those laws apply. This update is in line with blogger approach to free expression and controversial content, which hasn’t changed.

Therefore they are redirecting the blogger blog URL to local country specific URL. For example, if you're in India and viewing, you might be redirected to . The country-specific domain should correspond to the country where you're currently located.

Presently, blogger allows anyone to view the .com version of a Blogger blog by typing: http://[blogname] – which always goes to the .com version of the blog. The “no country redirect” (ncr) will temporarily prevent Blogger from redirecting readers to the local version of the blog. This may be removed in future.

Custom Domain won't be effected by this change. So, solution, I am suggesting will require only if you have domain for your blog. Following code you have to place in head section of your blog template.

<script type="text/javascript">
<!-- (c) You can only use this script by not removing this comment line. -->
if ((window.location.href.toString().indexOf('.com/')) == '-1') {
window.location.href = window.location.href.toString().replace(/(\bblogspot[^\/]*\b)/m,'');

More information on Blogger Country specific URL redirection.
As usual, thanks for reading! Please put your comments to share your views and feedback.
- InstantKick Team


Write comments