Min menu

Pages

Stop Blogger from Redirection your Blogspot domain to Country-Specific URLs

Stop Blogger from Redirection your Blogspot domain to Country-Specific URLs


Stop Blogger from Redirection your Blogspot domain

My blog redirects to a country-specific URL (ccTLD)

The website address of a blog you read may redirect to a country-specific domain (for example: from [blogname].blogspot.com to [blogname].blogspot.com.au).
This update is in line with Google’s approach to free expression and controversial content.
If we receive a request to remove content that violates local law, that content may no longer be available to readers on local domains where those laws apply.
Note: Country-specific domains is not a different blog address, but a domain redirect based on the country where you're currently located.

how to Stop blogger redirect to country ccTLD

If you would like to see content on other domains and do not want to be automatically redirected, type:
  • http://[blogname].blogspot.com/ncr for an entire blog 
  • http://[blogname].blogspot.com/ncr/examplepage for a single post.
The “ncr” (no country redirect) will temporarily prevent redirection to the local version of the blog.

Source from : https://support.google.com/blogger/answer/2402711?hl=en

This is will effect SEO for your blog.
This change may cause crawlers to find Blogspot content on many different domains. Blogger is making every effort to minimize negative consequences of hosting Blogspot content on multiple domains. Search engines should consider the blogspot.com version of your blog to be the official one.

Stop Blogger From Redirecting Your Blogspot Blog To Country-Specific URL using below code.
Go to your blog inside the Blogger Dashboard and choose Template. Then click the “Edit HTML” button Next, copy-paste the following code into the template after the <head> tag.

<script type="text/javascript">
var blog = document.location.href.toLowerCase();
if (!blog.match(/\.blogspot\.com/)) {
blog = blog.replace(/\.blogspot\..*?\//, ".blogspot.com/ncr/");
window.location.replace(blog);
}
</script>
 Click the Save Template button and now your Blogger Blog will always serve with the blogspot.com URL.
reaction:
https://www.it-weblog.com IT weblog and IT Blog contain articles for computer, network,security ,adsense,Hosting, google,freeware download from IT blog.

Comments