How to Switch from Blogger to WordPress without Losing Search Rankings?

Affiliate disclosure: In full transparency – some of the links on our website are affiliate links, if you use them to make a purchase we will earn a commission at no additional cost for you (none whatsoever!).

How many times have you been in the dilemma of How to Migrate your Blog from Blogger to WordPress? Me? Around 10 times, and well by now I’ve already moved blogs too and fro about 7 times, (the first three times I was just too scared!), so the point being, that’s what I’m covering in this piece today, How to Switch from Blogger to WordPress without Losing Search Rankings.

If you’re an avid reader over here, you’re most probably already familiar with my tradition, I get into the “why” before the “how”, well and that only seems fair.

If I’m explaining to you How to Import a Blogger blog to WordPress, I think you do deserve a chance to know who to import a blogger blog to WordPress in the first place, right?

Why Import a Blogger Blog to WordPress:-

Now well, WordPress is used by a total of 25% of the overall world websites! That’s a big number! But no reason for you to switch to WordPress too, yeah granted.

So here are some of the most basic advantages and reasons which would make you consider switching your blog to WordPress right about now:-

  • Self-hosted CMS:- The worst thing about a blogger? Nope, it’s not the layout or the themes, it’s the “control”. You don’t “own” your own blog! Google owns it, it can delete, edit, change or completely remove your years of hard work (not from just the Search Engines, but remove “literally” from the blogosphere directly!) without any notice to you.
  • Better Themes and Layouts:- WordPress has dozens of platforms devoted to getting you the best possible looks and layouts, while blogger? Not so much. Themeforest is one such leading platform! The point being, the types of layouts and designs possible with a blogger blog aren’t so achievable with the blogger blogs.
  • Third-Party Plugins:- “Blogging” has turned into a whole lot of science right now! You can’t imagine getting ranked or making a career just by “writing content”! You need Email popups, CDN’s, Lockers, and what not in order to outrank your competition! Guess what, none of that is possible on a blogger blog, while WordPress? Well totally possible!
  • Better security:- The only thing a hacker needs to hack in order to cause havoc on your blogger blog, is your Gmail account! And hacking Gmail? It is a kid’s job! (Take it from someone who has spent a lot of time doing this exact shit!). While on WordPress? You’ve got extra security layers, a personalized cPanel, defensive plugins like WorDfence and lots more!

So yeah, I think I’ve listed more than enough reasons for you to consider the switch, right? Now let’s get into some action.

How to Switch from Blogger to WordPress without Losing Google Rankings:-

Well the primary reason you loose your rankings is, during the migration process, you mess up your article permalinks. And additionally, don’t properly redirect it, as a result the new site becomes “completely” new for Google, and hence the rankings are all vaporized.

  • Do you wish to save money on your purchases at Thrivecart? ThriveCart is a platform that allows you to sell and collect money for your physical and digital items. Here, you’ll find the most up-to-date Thrivecart discounts and special offers.

So if you don’t want that to happen, the first thing you’d want to do is, export your blogger blog.

How to Switch from Blogger to WordPress without Losing rankings

Log in to your Blogger blog, go to settings.

Then, click over the “other” option.

How to Switch from Blogger to WordPress without Losing rankings

Now, choose the “back up content” button.

How to Import a Blogger blog to WordPRess

And finally click on save to computer.

Migrate from Blogger to WordPress without losing Google Search rankings

This would get you a .xml file on your computer.

Great, you’re done! Now let’s import this .xml blogger file to your WordPress website, right?

Login to your WordPress, and go to Tools>Import.

How to Migrate your Blog from Blogger to WordPress

Then choose the “blogger” option from the list.

How to Migrate your Blog from Blogger to WordPress

And click on Install importer. This importer is an external plugin that you can use to import the blogger blog to WordPress pretty smoothly.

How to Migrate your Blog from Blogger to WordPress

Once it’s installed, click on “activate and run importer” button.

How to Switch from Blogger to WordPress without Losing

On the next screen, just click the “choose” button and upload the blogger backup file you just downloaded.

How to Switch from Blogger to WordPress without Losing

Done! You just imported your blogger blog content to your WordPress blog. But hey, that was just the first step, that’s what you can find almost in any other piece on the internet about How to Migrate your Blog from Blogger to WordPress, but the main part, the “don’t lose your rankings” part is still to follow.

So once you’ve imported the content, let’s work on “not losing” our rankings.

You’d want to go to your WordPress blog’s settings> Permalinks for the next step.

ow to Migrate your Blog from Blogger to WordPress

Now you need to make sure that your WordPress permalink is exactly the same, or as close as possible to your blogger blog’s permalinks. And well for that I’d say the safest bet is choosing Month and Name. Because that’s the default blogger permalink structure, right?

ow to Migrate your Blog from Blogger to WordPress

So once you save that up, you’re done with the permalink settings.

The Redirection:-

So once you’ve done the permalinks thing, the last thing that remains to be done is the redirection.

  • Redirecting Blogger Blog to Redirect to the WordPress site.
  • 301 redirecting posts to exact permalinks on the WordPress site.

Go to your Blogger Dashboard, and click on Templates.

Migrate from Blogger to WordPress without losing Google Search rankings

Then scroll down to the very bottom of the page, and click on the “Revert to Classic Templates” button.

Migrate from Blogger to WordPress without losing Google Search rankings

Once you’ve clicked on that button, you can clearly see the “Edit Template HTML” box. Delete everything in the text-box, and paste the following code there:-

<html>
 <head>
  <title><$BlogPageTitle
 
gt;</title> <script> <MainOrArchivePage> window.location.href="http://example.com/" </MainOrArchivePage> <Blogger> <ItemPage> window.location.href="http://example.com/?blogger=<$BlogItemPermalinkURL
 
gt;" </ItemPage> </Blogger> </script> <MainPage> <link rel="canonical" href="http://example.com/" /> </MainPage> <Blogger> <ItemPage> <link rel="canonical" href="http://example.com/?blogger=<$BlogItemPermalinkURL
 
gt;" /> </ItemPage> </Blogger> </head> <body> <MainOrArchivePage> <h1><a href="http://example.com/"><$BlogTitle
 
gt;</a></h1> </MainOrArchivePage> <Blogger> <ItemPage> <h1><a href="http://example.com/?blogger=<$BlogItemPermalinkURL
 
gt;"><$BlogItemTitle
 
gt;</a></h1> <$BlogItemBody
 
gt; </ItemPage> </Blogger> </body> </html>

Note:- Replace the Example.com in the above code with your new WordPress blog URL. And save the template.

How to Migrate your Blog from Blogger to WordPress

Done! Now just one last piece of work left for you to finish off. Login to your Cpanel, and go to File Manager Public_Html

How to Switch from Blogger to WordPress without Losing

Then go to Blog Name> Wp-Content > Themes > Theme Name >there you’d find your functions.php file and then right Click on functions.php>edit.

How to Migrate your Blog from Blogger to WordPress

And paste the following code into the functions.php file.

function blogger_query_vars_filter( $vars ) {
  $vars[] = "blogger";
  return $vars;
}
 
add_filter('query_vars', 'blogger_query_vars_filter');
 
function blogger_template_redirect() {
  global $wp_query;
  $blogger = $wp_query->query_vars['blogger'];
  if ( isset ( $blogger ) ) {
    wp_redirect( get_wordpress_url ( $blogger ) , 301 );
    exit;
  }
}
 
add_action( 'template_redirect', 'blogger_template_redirect' );
 
function get_wordpress_url($blogger) {
  if ( preg_match('@^(?:https?://)?([^/]+)(.*)@i', $blogger, $url_parts) ) {
    $query = new WP_Query ( 
      array ( "meta_key" => "blogger_permalink", "meta_value" => $url_parts[2] ) );
    if ($query->have_posts()) { 
      $query->the_post();
      $url = get_permalink(); 
    } 
    wp_reset_postdata(); 
  } 
  return $url ? $url : home_url();
}

You just 301 redirected your blogger blog to WordPress!

301 is the best redirection protocol ensuring the least ranking loss. (100% ranking loss is “impossible”, it always loses some juice, but this causes the least damage and you can come back up in less than a week!)

Final Words:-

So that was all I had folks on How to Switch from Blogger to WordPress without Losing. I’m sure this piece should’ve helped you out Migrate from Blogger to WordPress without losing Google search rankings.

If it did, I’d love it if you hit the share buttons. Or maybe got a question? Something isn’t working, right? Do leave a comment I’ll try my best to help you out.

Evan Derek

Evan Derek is the Founder and Chief SEO Analyst @ VebbLabbs. Specializing in Affiliate Marketing and helping newcomers to make it a stable profession in the online world, he boasts 6+ years of experience in the industry. 19 years has he spent on this planet successfully, and plans on spending at least 50 more! He is a frequent reader and a follower of WordPress blogs like: CMODigitalForum

Leave a Comment