How To Prevent or Stop Country Specific URL Redirects on Websites (Blogger) | EmpireTechx: How To, Earn Money, Blog, Social, SEO EmpireTechx: How To, Earn Money, Blog, Social, SEO  

How To Prevent or Stop Country Specific URL Redirects on Websites (Blogger)

🌍 EmpireTechx - How To | Make Money | Blogging Tips | Games | Tech Services ... We Accepts Guest Post, Do Freelancer Services, Teach How To Make Money Online, etc 🌍
 
Blogger has a way of redirecting Blog sites URL  to the Country Specific URL your blog visitor is coming from.

For instance if your blog visitor is visiting your blogger blog from Spain, Uk, Australia, India, Romania etc.

Your blog URL will be redirected from .com to the visiting countries specific URL like .in or .uk or .ng or .au etc.

So this way if you're visiting from country like UK then the blog URL will be redirected to .uk.

Recent report have it that many countries of the World are affected by this blog specific url redirect.

The Countries includes:

Argentina (website.com.ar)


Australia (website.com.au)


Brazil (website.com.br)


Canada (website.ca)


Czech Republic (website.cz)


France (website.fr)


Germany (website.de)


Hong Kong (website.hk)


India (website.in)


Italy (website.it)


Japan (website.jp)


Mexico (website.mx)


New Zealand (website.co.nz)


Portugal (website.pt)

Romania (website.ro)


Spain (website.com.es)


Sweden (website.se)


UK (website.co.uk)
etc.

We all know that too many redirects has its negative effects on our blogs.

How To Prevent or Stop Country Specific URL Redirects on Websites (Blogger)

So if you would love to prevent or disable this country specific URL redirect then you have to follow the steps below.

Step i


First  backup your blogger template it's very necessary.

Goto  'Theme'  from your blogger dashboard.

Step ii

Then select 'Edit HTML'

Step iii

Then search for  <Head> tag using this  source code editing tool and paste the code given below right below  <Head> tag.

&lt;script type=&#39;text/javascript&#39;&gt;
var str= window.location.href.toString();
if ((str.indexOf(&#39;.com/&#39;))==&#39;-1&#39;) {
var str1=str.substring(str.lastIndexOf(&quot;.blogspot.&quot;));
if (str1.indexOf(&#39;/&#39;)==&#39;-1&#39;) {
var str2=str1;
}
else {
var str2=str1.substring(0,str1.indexOf(&#39;/&#39;)+1);
}
window.location.href =window.location.href.toString().replace(str2,&#39;.blogspot.com/ncr/&#39;);
}
&lt;/script&gt;

Save and upload your template and you have successfully stop Country specific URL redirect on your website.

Which can also help you SEO basically.