Prevent Blogger from redirecting your Blogspot blog to country-specific URLs

0

Google now redirects Blogger blogs to country specific domains. For example, if you open example.blogspot.com in your web browser, you will be redirected to example.blogspot.in if you are located in India or example.blogspot.co.uk if you are accessing the blog from the UK.

Google performs a country-specific redirect for selective censorship – this means that they can easily censor or block a blog post, or another entire blog site, in one country, but still serve that page in other regions geographic. Blog redirecting only happens if you are on a blogspot domain and not if your Blogger blog is on a custom domain.

My traffic logs suggest that country specific redirect in Blogger is active in at least 15 countries. They are India [blogspot.in], Australia [blogspot.com.au], UK [blogspot.co.uk], Japan [blogspot.jp], New Zealand [blogspot.co.nz], Canada [blogspot.ca], Germany [blogspot.de], Italy [blogspot.it], France [blogspot.fr], Sweden [blogspot.se], Spain [blogspot.com.es], Portugal [blogspot.pt], Brazil [blogspot.com.br], Argentina [blogspot.com.ar], Mexico [blogspot.mx]

Prevent Blogger from redirecting to country specific domains

This country-based URL redirect is likely to have a less positive impact on your Blogger blogs. For example:

  1. Social statistics – like your Facebook likes, Google +1, and number of Tweets – for your blog posts may be reduced because the URLs for the same blog post will be different for different visitors.
  2. You will have a similar problem if you are using an external commenting platform like Disqus or Facebook Comments, as blog URLs will be different even when the underlying page is the same.
  3. Also, if canonization is not properly implemented, it can cost you Google juice as external websites can link to pages specific to your country.
  4. Some users have reported a drop in Google AdSense revenue when pages are served through country-specific domains.

If you are not happy with the idea of ​​Blogger redirecting your blog to a different URL, you can add the following piece of code to your Blogger template and it will always serve the .com address to your visitors, regardless of their location. geographic location.

Go to your blog in the Blogger dashboard and choose Template. Then click on the “Edit HTML” button followed by “Continue”. Then copy and paste the following code into the template after the label.

Click the Save Template button and now your Blogger blog will always serve with the blogspot.com URL.

The JavaScript snippet gets the URL of the current Blogger page and if not served from the .com domain, the code overrides the country specific TLD (like blogspot.co.au or blogspot.pk ) by the blogspot.com URL. It also adds the / ncr switch to force redirect the visitor to blogspot.com address.

[5/4/2015] – The snippet is now more efficient and can handle both www and non-www blogspot URLs, including those served from secure HTTP (https).

[11/9/2015] – Code fixes


Source link

Share.

About Author

Leave A Reply