How to stop blogger url redirection

How to stop blogger url redirection
This issue mostly hapens when you are using a free dormain extension. You may have seen your url change from “yourname.blogspot.com” to something like “yourname.blogspot.co.ke”. This can result in a slight drop in your adsense earnings as well as reduction in traffic. Because anytime google bots try to crawl and index your site, they'll be redirected which will

result in your page not getting indexed. I also had been experiencing this. When I check my “Search Console Fetch as Google” stats I always see “Redirected” so I had seek for solutions online until I bumped into one. So I'll be sharing with you how you too can stop URL redirection on your blog.
To stop blogger url redirection, follow the steps below

Step 1
Login to your blog dashboard

Step 2
Select Template/Theme

Step 3
Click “Edit HTML”

Step 4
Now inside your tempate html box, search for the <head> tag and paste the below code after the <head> tag


<script type="text/javascript">
  // Written by John Jacob

  /* 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://bestutorialz.blogspot.com

</script>


Step 5
Now click on “Save Template

That's all!

Post a Comment

0 Comments