Migrate/Redirect Blogspot without loosing SEO Rank

Migrating 3rd-party hosted website

blogger move domain

When your website is hosted on 3rd party services (like Blogspot or etc) which doesnt support Server-side(called 301) redirection , then you are in a trouble a bit, because the best and the only correct way to migrate the website, without loosing the SEO rankings and score, is to migrate using 301 redirection, which can only be done from “Server-side” command. Unfortunately, such kind of 3rd-party blog hostings, doesnt give users an ability to use 301 redirect. So, you have to make a “trick” to do the job with your own ways (not perfect, but worth to do). You have 2 things to do:



Step 1: “CANONICAL” meta-tag to Migrate SEO score

seo score

1) You can try to move your current SEO score towards new site, using CANONICAL meta-tag. Typically, tag looks like this:

<link rel="canonical" href="http://www.example.com/another-page.html" />

However, you need it to be variable, depending on the article url (to learn more about front-end and back-end variables). Now, you have to pre-define whole block of variables (you have to spend some time for this) and put this block between <head></head> tag of the website template (in blogspot, you should find “Template>Edit HTML”)…

<b:if cond='data:blog.url == "http://xyz.blogspot.com/page12.html"'><link rel="canonical" href="http://example.com/newurl1.html" /></b:if>
<b:if cond='data:blog.url == "http://xyz.blogspot.com/page89.html"'><link rel="canonical" href="http://example.com/newurl2.html" /></b:if>
...... and so on

…  (p.s. same thing can be done using Javascript, but that wont be as good for search engine..)


Step 2: Redirect users to your new site

Now, you have to redirect people to your new website… In the above if/else statments, after the <link rel....> tag, you can add such tag:

<b:if cond='data:blog.url == "http://xyz.blogspot.com/page12.html"'><link rel="canonical" href="http://example.com/newurl1.html" /><meta http-equiv="refresh" content="1; url=http://example.com/newurl1.html"></b:if> 
<b:if cond='data:blog.url == "http://xyz.blogspot.com/page89.html"'><link rel="canonical" href="http://example.com/newurl2.html" /><meta http-equiv="refresh" content="1; url=http://example.com/newurl2.html"></b:if>
...... and so on

that means (1) the users will be redirected in 1 seconds as soon as they open the old website.

(Again, you can use JavaScript redirection instead of adding the “meta redirection” command in above tags. However, i dont know which one is better and which one has a bad impact… I dont know, feel free to write in comments):

 var matches= /(.*?)\/([0-9]{4})\/([0-9]{2})\/(.*?)\.html/.exec(location.href);
 if(matches[4]){Final_URL= 'https://puvox.software/blog/' + matches[4] +'/'; document.write('<link rel="canonical" href="'+Final_URL+'" />'); window.setTimeout(function(){document.body.style.opacity=0; },500); window.setTimeout(function(){window.location.href=Final_URL;},1000); }


=== Conclusion ===

Unfortunately, I couldnt find easier way when I moved my site.You have to spend a little time to do everything correctly  ( Who knows, maybe there will appear a better method???)


One thought on “Migrate/Redirect Blogspot without loosing SEO Rank

  • May 21, 2021 at 10:13 am

    Kindly Tell the 301 redirect method


Leave a Reply

Your email address will not be published. Required fields are marked *