How to transfer Blogger to WordPress without Losing Google Rankings

Blogger is an awesome free tool to quickly start blogging. However, many Blogger users eventually realize that if they want full control of their blog, then they would be better off with their own self hosted WordPress.org blog (what’s the difference between self-hosted WordPress.org vs WordPress.com blogs). If you are looking for move your all blogger content to wordpress without any error and losing web traffic than checkout this Fiverr Gig can help you.




In this step by step tutorial, i will help you transfer your blog from Blogger to WordPress without losing Google rankings or visitor. 

transfer Blogger to WordPress

Step 1. Download Plugin and Import Blogger to WordPress

First login you blogger and wordpress account after that you have to go to wordpress dashboard and click on add new plugin.

There are many free blogger importer plugin which copy your all data from blogger to wordpress it will take some time to download data from google server to your web hosting server it depend on size of your data.

If you have lots of data and taking lots of time to import than please use another method to import.

2 Method: First go to blogger dashboard and download data and simply upload .xml format  data file to your wordpress site using wordpress import tool.

Step 2. Setting up Permalinks

However, since you are importing content from Blogger, you would want your URL structure to be as close to your Blogger URL structure as possible.

To set permalinks, you need to go to Settings » Permalinks and choose Month and Name as your permalink structure.

Step 3. Setting up Redirection

The most important step in moving any website is to set up proper redirection so that users are redirected to your new website.

The important part of redirection is that you want users to land on exactly the same page on the new site which they were trying to access on the old site. Secondly, this also notifies search engines that your old site is moved to a new location.

To successfully move from Blogger to WordPress, you need to set up redirection on two levels.

First, you will redirect Blogger visitors to your new WordPress blog. Second, once users reach your WordPress site, you will redirect them to the exact post they were trying to read.

On the template page, you need to scroll down to the bottom of the page and click on Revert to Classic Template link.

After switching to classic template, you will see ‘Edit Template HTML’ textarea. You need to replace everything in this text area with the following code. Make sure that you replace http://www.example.com with your own domain name.


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

<script>

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

<MainPage>

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

<Blogger>

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

<body>

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

Save your template, and you have successfully implemented redirection on your Blogger blog.

However, you still need to setup redirection on your WordPress site so that users are redirected to the proper posts.

You need to copy and paste the following code in your WordPress theme’s functions.php file or in a site-specific plugin.

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();
}

The code above creates a blogger to WordPress 301 redirect which is what you need to ensure best SEO. Once you have pasted this code, that’s all you need to do for setting up redirection.
Now anyone visiting a post on your old Blogger blog will be redirected to the same post on your new WordPress site.

If You have any Problem in Redirecting your visitor or importing content than i recommend you to checkout this Fiverr Gig which can do it for you!


Get "Make Money" Tips and Idea in Your Inbox
For More Cool Tutorial and Guide