How to Migrate from Blogger to WordPress without Losing Google Ranking

posted by admin on 31 May 2016 0 Comments

**This post contains affiliate links and I will be compensated if you make a purchase after clicking through my links.

How to Migrate from Blogger to WordPress without Losing Google RankingMy very first blogging journey began from blogger.

That was when I first came across the term blogging.

The domain name was myusername.blogspot.com and I used to write my random ramblings on that free platform.

My friends and family used to visit the domain sometimes and leave feedback and comments.

Soon it started to become a convenient platform for us to communicate with each other.

I gained readers every few days, and then one of the visitors suggested to set up my own self hosted domain so that all my efforts won’t go in vain if the free platform provider decided to block my contents or just wipe off everything one fine day.

That was when I started shopping around for self hosted domain and hosting provider.

That was not the difficult part though. After I set up my hosting and domain, I faced the challenge of transferring my blogger posts to WordPress.

I also did not want to lose Google rankings for my nice ranking keywords. We did some research and found out exactly what needed to be done in order to keep my contents intact on my new domain and well ranked keywords in search engines.

That’s why we decided to put together this step by step tutorial on How to migrate from Blogger to WordPress without Losing Google Ranking.

Blogger is a free and awesome platform where you can quickly start blogging without having anything to install. But if you want a full control of your blog, you can do it better with your own self hosted WordPress.org blog.

In this step by step tutorial, we will go through the process of switching from Blogger to WordPress without losing any of your Google rankings, search traffic and page rank.

Before Your Start:

If you are new to WordPress, the first thing you need is a good hosting company and your own domain name. A Hosting Service is something you should choose very carefully. They should be trustworthy and should have great reviews. Make sure that their customer service and technical support is at par. They are available anytime of the day, and if they provide secure network.

For hosting, we recommend Bluehost as they give you free domain and up to 30% discount when you join them. As your blog is going to reside with this host, the speed and site accessibility of your blog will depend on this hosting service. People who have used Bluehost as their hosting service have nothing but good things to say about them.

Once you have setup your hosting and domain name, the next step is to install WordPress on your hosting account.

Follow these step by step instructions on how to set up your domain name and hosting on your WordPress blog.

Once your are done with setting up WordPress, let’s start the process of moving your posts / contents from blogger to WordPress.

Step #1: Export your Blog Posts from Blogger

First thing you need to do is export your Blogger contents. Just log into your blogger dashboard and go to Settings -> Other.

Blogger to WordPress Migration

Under the Blog Tools section, click on the Export blog link.

This will open up a popup window as shown below.

Export Blogger Blog

Click on the Download Blog button to save your contents on your computer in an XML file.

After this step, now you need to import these contents into your WordPress site.

Step#2: Import Blogger Contents into WordPress

In order to import Blogger posts into WordPress, follow these steps.

  • Login to your WordPress Admin dashboard and navigate to Tools > Import.
    Blogger to WordPress ImporterOn the next screen select ‘Blogger’
  • Next, if you not already have Blogger Importer plugin installed, it will ask you to do so. To proceed with it, click on “Install Now” button.
    Blogger Importer PluginOnce installation is complete, click Activate Plugin and Run Importer on the next screen.
    Blogger Importer
  • Click “Browse” and select the XML file that you have downloaded in Step#1.
    Import BloggerOnce you select the file, click on Upload file and import.
  • On the next screen select the author you want to assign all the posts. You can select from an existing user from the drop-down menu or can create a new one.
    Import Blogger - Assign AuthorsNext click the Submit button.
  • When you get the message “All done. Have fun!” that means all your blogger posts have been imported into WordPress.
    Import FinishedTo verify it just check your Posts section.

Now that you have successfully imported your Blogger contents into your WordPress site, next step is to preserve your rankings so that you do not loose any of your traffic. The first step is to setup the permalinks on your WordPress site and then setting up the proper redirection on Blogger. This way all your visitors from your old blog will be redirected to the same contents on your new WP site.

Step#3: Setting up Permalinks

Permalink means a permanent static URL structure of a particular web page or entry in a blog. In WordPress there are many options you can choose from, to set your URL structure. Out of these, choosing the one that is SEO friendly is recommended. Here we have chosen Month and name as permalink settings.

Set Permalinks WordPress

Step #4: Setting Up Proper Redirection

Now comes the most important step known as redirection. Setting up proper redirection will help in preserving your old visitors, Google rankings and traffic. It also notifies search engines that your old site is permanently moved to a new location.

This is a two step method and setting needs to be done on both Blogger as well as WordPress side.

1. Blogger Settings:

Lets first go for Blogger part. Login to your Blogger Dashboard and choose Templates. Scroll down to the end of page and choose Revert to classic templates.

Blogger Templates

This will change XML based template to HTML tag based template mode that will be easy to manipulate.

After switching to classic mode you will see ‘Edit Template HTML‘ section that allows you to edit the contents of your template. Now replace the whole contents of this section by copy pasting the following code. Before pasting, make sure to replace http://thedomainname.com with your own domain name.

<html>
 <head>
  <title><$BlogPageTitle$></title>

   <script>
    <MainOrArchivePage>
    window.location.href="http://thedomainname.com/"
    </MainOrArchivePage>
    <Blogger>
     <ItemPage>
     window.location.href="http://thedomainname.com/?blogger=<$BlogItemPermalinkURL$>"
     </ItemPage>
    </Blogger>
   </script>

   <MainPage>
   <link rel="canonical" href="http://thedomainname.com/" />
   </MainPage>

   <Blogger>
    <ItemPage>
    <link rel="canonical" href="http://thedomainname.com/?blogger=<$BlogItemPermalinkURL$>" />
    </ItemPage>
   </Blogger>
 </head>

 <body>
  <MainOrArchivePage>
   <h1><a href="http://thedomainname.com/"><$BlogTitle$></a></h1>
  </MainOrArchivePage>
  <Blogger>
   <ItemPage>
    <h1><a href="http://thedomainname.com/?blogger=<$BlogItemPermalinkURL$>"><$BlogItemTitle$></a></h1>
    <$BlogItemBody$>
   </ItemPage>
  </Blogger>
 </body>
</html>

Save the changes and you are almost done implementing the changes on blogger side. Now you need to make changes on WordPress side also to setup proper redirection. Doing this will redirect the users to the proper posts.

1. WordPress Settings:

Go to Appearance -> Editor and select functions.php file for editing. Most of the WordPress themes include functions.php file or you can also upload it manually into your themes folder using FTP or cPanel.

Next copy paste the following code into your functions.php file at the beginning and save the changes.

function twt_blogger_query_vars_filter( $vars ) {
  $vars[] = "blogger";
  return $vars;
}
 
add_filter('query_vars', 'twt_blogger_query_vars_filter');
 
function twt_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', 'twt_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();
}

The above code implements 301 redirection from old Blogger blog to new WordPress site. This allows to pass all the Page rank juice to your new WordPress posts and is a required step for best SEO. strategy.

Step #5: Redirect the RSS Feeds

Now you have setup the post redirection in above step but the redirection of the RSS feeds will not be done automatically.

To do this login to your Blogger account and go to Settings -> Other and choose Post Feed Redirect URL under Site Feed. Here you can type the web address of your new WordPress site’s RSS feed. This will cause your existing RSS subscribers to redirect to the new feed.

Set Feed Redirection

Step #7: Import Images from Blogger to WordPress Media Library

The Blogger import tools used in above step moves your post contents, comments as well as images from Blogger to WordPress. Sometimes it fails (rare chance in case of external images) to import some images and if this happens you can import those images using third party plugin called ‘Import External Images‘.

Step #8: Migration Complete

That’s it! Your migration from Blogger to WordPress has completed successfully. You should be able to operate your new WordPress site with all the old blogger posts. Here are some important thing you can follow afterwards:

  1. Install some essential plugins that can boost your site’s security and SEO.
  2. Submit the XML sitemap of your new site to Google Webmaster for fast indexing.
  3. If you plan to install Genesis Framework, here is a step by step guide to configure it properly.
How to Migrate from Blogger to WordPress without Losing Google Ranking

Save

Disclaimer: This post may contain affiliate links and I will be compensated if you make a purchase after clicking on my links.

If you want to start a blog yourself, make sure to read through my step by step tutorial on how to start a blog where I walk you through the whole process of money making blog. If you sign up using my link, you will be able to get hosting at discount rate through Bluehost for only $3.95 per month. You will also be able to get a FREE Domain.

Leave a Reply

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

CommentLuv badge