Stopping Country specific URL redirection on Blogger


Stopping Country specific URL redirection on Blogger
There is a great list of back where we have shared and Gadgets blogger tips and tricks for social media. In this tutorial we will guide you to a simple trick to prevent the country's auto redirection URL blogspot.co.in ie, blogspot.co.uk. blogspot.ru etc to your main URL is blogname.blogspot.com. This URL redirection happened when receiving any visitors from India, United Kingdom, France, etc. your main blog auto redirection URL for your TLD country code (ccTLD), as defined below.

Blogger URL redirection specific country

The specific URL redirection country blogger is actually this type of redirection is the concern for geo-location of the visitor. For example, a blogspot.com but if a visitor from India looking for then do not show blogspot.com.in instead of blogspot.com and so will other visitors to the country. The ccTLD stands for top level domain country code domain and this was maintained for the respective countries as:. Fr, co.in co.ae, co.uk etc.

How to stop redirect URLs?

You can also see the version of URL using com / ncr .. For example standard URL without / ncr is displayed as http://analytics.blogspot.com and URL / ncr is displayed as http://analytics. blogspot.com / ncr. Now the question is it legal to stop redirection from? and of course the answer is positive. This is stated by Google that there is nothing wrong with stopping and allows you to view any blogspot com part using url / ncr .

Stopping Country specific URL redirection on Blogger?

It is very easy to disable and stop URL redirection country. You have to add the following codes according to the instructions you guided in the following lines.

Go to Blogger Dashboard> Template>

Edit HTML and search for closing head tag ie </ head>

Paste the following given above / before the head tag closing </ head> code.

  1. <script type="text/javascript">// <![CDATA[
  2. var blog = document.location.hostname;
  3. var slug = document.location.pathname;
  4. var <span class="hiddenSpellError" pre="var ">ctld</span> = blog.substr(blog.lastIndexOf("."));
  5. if (ctld != ".com") {
  6. var ncr = "http://" + blog.substr(0, blog.indexOf("."));
  7. ncr += ".blogspot.com/ncr" + slug;
  8. window.location.replace(ncr);
  9. }
  10. // ]]></script>

Save you template and you have done.

You have carefully read my article and want to get the important safety information. Nothing is out of his mind or difficult to understand, so if you feel frustrated can ask me anything.

1 comments:

Blogging is incredible and every blogger playing a great role to introduce new things in blogging. I always like to fly on different blogs and read the strategies of different blogger to understand the blogging in more depth. Being a bloggers I really appreciate your works and no doubt your blog is awesome.
Love from Asad Niazi

Reply

Post a Comment

Find Us On Facebook