advertisement

Breaking News

AVOID GOOGLE FOR REDIRECT YOUR BLOGS TO COUNTRY-SPECIFIC DOMAINS



Google does nation particular redirection for specific restriction – that implies they can without much of a stretch blue pencil or piece a blog entry, or other whole blog website, in one nation yet at the same time serve that page in other geographic districts. Blog redirection just happens in the event that you are on a blogspot area and not if your Blogger blog is on a custom space.

Google now redirects Blogger blogs to country-specific domains. For instance, 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 to example.blogspot.co.uk if you are accessing the blog from UK.


My traffic logs suggest that country-specific redirection in Blogger is live 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 redirection is likely to impact your Blogger blogs in a not so positive manner. For example:

The social stats – like your Facebook Likes, Google +1s and Tweet counts – for your blog posts may be reduced as the URLs for the same blog post will be different for different visitors.
You will have a similar problem if you are using an external commenting platform like Disqus or Facebook Comments because the blog URLs will be different even when the underlying page is the same.

Also, if canonicalization isn’t implemented properly, it may cost you some Google juice as external websites may link to your country-specific pages.
Some users have reported a dip in Google AdSense earnings 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 irrespective of their geographic location.

Go to your blog inside the Blogger Dashboard and choose Template. Then click the “Edit HTML” button followed by “Proceed.” Next, copy-paste the following code into the template after the <head> tag.

<script type="text/javascript">

  // Written by Amit Agarwal
  
  /* Get the full URL of the current blogger page */
  var blog = document.location.href.toLowerCase();

  /* Do not redirect if the domain is .com already */
  if (!blog.match(/\.blogspot\.com/)) {

    /* Replace the country TLD with .com and ncr switch */
    blog = blog.replace(/\.blogspot\..*?\//, ".blogspot.com/ncr/");

    /* Redirect to the new .com URL in the current tab */
    window.location.replace(blog);
  }

  // Source: http://labnol.org/?p=21031
  
</script>

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 it isn’t served from the .com domain, the code replaces the country specific TLD (like blogspot.co.au or blogspot.pk) with the blogspot.com URL. It also adds the /ncr switch to force-redirect the visitor to the blogspot.com address.

[5/4/2018] – 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/2018] – Code fixes

4 comments:

  1. I finally found a broker about which for the first time in 5 years I will write a positive review. sure traders Group company really showed its good side. This is both reliability in the execution of orders, and professional consultants who will always come to the rescue if force majeure suddenly happened on the market, I have no complaints about the trading platform, it works perfectly and does not freeze. With the depositing and withdrawal of funds in general there are no problems, everything comes on time. And of course, webinars which are conducted very often, for beginner traders and if you want to recorver your lost funds - I recommend expert.traders4u@gmail.com, although for those with experience too. In general, for four months I have no complaints about the company. you can whatsapp them on +263787350597 Email.... [expert.traders4u@gmail.com].

    ReplyDelete
    Replies
    1. Few months ago, I invested about $36,000 into this binary option platform with the aim of diversifying my trading portfolio. However, with my strict habits of growing my account 300% before taking profits, i never attempted any withdrawals, not until two months ago when i tried to withdraw but all effort was in vain. I called the account manager and explained the situation, he told me i would be able to withdraw after 4 working days which sounded shady to be very honest. 4 days went by, still no withdrawals, i tried reaching out to the manager and customer service line but none of them were reachable till this moment. I shared my experience with my colleague at work, he introduced me to an International Recovery Firm Who helped recovered all my lost investment back, they also helped me with their masterclass strategies which helped me to win trades and avoiding loses, making me Earn more and avoid loses,these people saved me and I had my claims after 6 working days. Their professionalism was top notch. contact info: via company website *www.nexocryptofx.online* or whats app (+16013013218).   email  (kateanderson8277@gmail.com). 

      Delete
  2. I am so happy investing with Carlos Trading signal.. He has really helped after I lost my job. I started investing as little as $100 and now I earn over $1,200 weekly. So happy you can contact him on his Email: carlose78910@gmail.com
    Via whatsapp: (+12166263236)

    ReplyDelete
  3. Few months ago, I invested about $36,000 into this binary option platform with the aim of diversifying my trading portfolio. However, with my strict habits of growing my account 300% before taking profits, i never attempted any withdrawals, not until two months ago when i tried to withdraw but all effort was in vain. I called the account manager and explained the situation, he told me i would be able to withdraw after 4 working days which sounded shady to be very honest. 4 days went by, still no withdrawals, i tried reaching out to the manager and customer service line but none of them were reachable till this moment. I shared my experience with my colleague at work, he introduced me to an International Recovery Firm Who helped recovered all my lost investment back, they also helped me with their masterclass strategies which helped me to win trades and avoiding loses, making me Earn more and avoid loses,these people saved me and I had my claims after 6 working days. Their professionalism was top notch. contact info: via company website *www.nexocryptofx.online* or whats app (+16013013218).   email  (kateanderson8277@gmail.com). 

    ReplyDelete