How to Migrate your Blog from Blogger to WordPress

By Unknown - Tuesday 4 November 2014 6 Comments
http://popcorn-it.com/
Your blog (abc.blogspot.com) is hosted on Blogger but you would now like to move your blog from Blogger to WordPress (self-hosted) with a personal domain name like abc.com. What is the easiest way to switch from Blogger to WordPress without losing search traffic and your existing subscribers?
WordPress provides an easy one-click option for importing blog posts and reader comments from Blogger into a new WordPress blog but there’s more to migration than just transferring content. For instance:
• Some of your articles on the old blogspot blog could be ranking very high in search engines for certain keywords but once you move these articles to a new WordPress blog, you will lose the organic search traffic since the permalinks (or URLs) of your blog posts will change.
• People often land on your blog through search engines, browser bookmarks and via other web sites that have linked to your blog pages. If you migrate to WordPress, Blogger would not automatically redirect the incoming traffic to your new website.
• When you switch from Blogger to WordPress, existing readers who are subscribed to your Blogger RSS Feed may be lost forever if they don’t manually subscribe to your new WordPress feed address (and most won’t).
The Importer tool available inside WordPress will only transfer content from Blogger to WordPress but if would also like to take care of each and every issue listed above, follow this step-by-step tutorial. It takes less than 5 minutes to complete and the method will also help transfer that Google Juice from the old blogspot.com address to your new WordPress blog.

How to Move a Blog from Blogger to WordPress
Important: Before you start the migration, it may be a good idea to backup your Blogger blogincluding the XML template, blog posts and comments just to be on the safe side.
1. Register a new web domain, buy hosting and install WordPress on your new domain.
2. Open your WordPress Admin Dashboard and under Tools -> Import, select the Blogger option. Authorize WordPress to access your Blogger Account, select your blogspot.com blog and within minutes, all your Blogger blog posts and comments will be available on the new WordPress site.
3. Open the WordPress themes editor under Appearance -> Editor and open the functions.php file for editing. Most WordPress themes include a functions.php file or you can upload it manually into your WordPress themes folder through cPanel or FTP. Copy-paste the following snippet of code inside your functions.php file (at the beginning of the file) and click the “Update File” button to save your changes.

1.   <?php
2.    
3.   function labnol_blogger_query_vars_filter( $vars ) {
4.     $vars[] = "blogger";
5.     return $vars;
6.   }
7.    
8.   add_filter('query_vars', 'labnol_blogger_query_vars_filter');
9.    
10.  function labnol_blogger_template_redirect() {
11.    global $wp_query;
12.    $blogger = $wp_query->query_vars['blogger'];
13.    if ( isset ( $blogger ) ) {
14.      wp_redirect( labnol_get_wordpress_url ( $blogger ) , 301 );
15.      exit;
16.    }
17.  }
18.   
19.  add_action( 'template_redirect', 'labnol_blogger_template_redirect' );
20.   
21.  function labnol_get_wordpress_url($blogger_slug) {
22.    global $wpdb;
23.    if ( preg_match('@^(?:https?://)?([^/]+)(.*)@i', $blogger_slug, $matches) ) {
24.      $q = "SELECT guid FROM $wpdb->posts LEFT JOIN $wpdb->postmeta
25.            ON ($wpdb->posts.ID = $wpdb->postmeta.post_id)
26.            WHERE $wpdb->postmeta.meta_key='blogger_permalink'
27.            AND $wpdb->postmeta.meta_value='$matches[2]'";
28.      $wp_url = $wpdb->get_var($q);
29.    }
30.    return $wp_url ? $wp_url : home_url();
31.  }
32.   
33.  ?>

4. Open your Blogger Dashboard and choose Templates. Scroll down the templates page and choose the “Revert to Classic Templates” option to switch from the XML-based Blogger templates to Tag based templates.
5. Copy-paste the following snippet into your Blogger template editor but before you do that, replace all occurrences of labnol.org with your WordPress site URL. For instance, if your WordPress site is located at example.com, replace labnol.org with example.com and paste the modified snippet in the template editor. Save the changes.

1.   <html>
2.    <head>
3.       <title><$BlogPageTitle$></title>
4.       <script>
5.         <MainOrArchivePage>
6.             window.location.href='http://labnol.org/'
7.         </MainOrArchivePage>
8.         <Blogger> <ItemPage>
9.             window.location.href='http://labnol.org/?q=<$BlogItemPermalinkURL$>'
10.        </ItemPage> </Blogger>
11.      </script>
12.      <MainPage>
13.        <link rel="canonical" href="http://labnol.org/" />
14.      </MainPage>
15.      <Blogger><ItemPage>
16.        <link rel="canonical" href="http://labnol.org/?blogger=<$BlogItemPermalinkURL$>" />
17.      </ItemPage></Blogger>
18.   </head>
19.   <body>
20.      <MainOrArchivePage>
21.          <h1><a href="http://labnol.org"><$BlogTitle$></a></h1>
22.      </MainOrArchivePage>
23.      <Blogger><ItemPage>
24.          <h1>
25.            <a href="http://labnol.org/?blogger=<$BlogItemPermalinkURL$>">
26.              <$BlogItemTitle$>
27.            </a>
28.          </h1>
29.          <$BlogItemBody$>
30.      </ItemPage></Blogger>
31.   </body>
32.  </html>

We are almost done. Open any page on your old Blogger blog and it should redirect you to the corresponding WordPress page. We are using a permanent 301 redirect on the WordPress side and therefore all the Google Juice and PageRank should pass to your new WordPress pages with time (video).

The above method works for regular blogspot.com URLs and also country-specific Blogger domains like blogspot.co.uk or blogspot.in that Google added about an year ago to better handle censorship related requests.

The Blogger Import tool moves only posts and comments from Blogger to WordPress but not images. And that should be fine because the image URLs in your imported WordPress posts are still pointing to blogspot.com (where the images were originally hosted) and therefore nothing would break.

Switch RSS Feed from Blogger to WordPress
When you move from Blogger to WordPress, the URL of your RSS feed will change as well. Go to Blogger -> Settings -> Other and choose Post Feed Redirect URL under Site Feed. Here you can type the web address of your new WordPress RSS feed here and the existing RSS subscriber will automatically move to your new feed.
If you are using FeedBurner, just replace the source from Blogger RSS feed to your new WordPress feed.

Migration to WordPress Complete – What Next?
Now that your new WordPress site is up and running with all the old Blogger posts, here are a few important things you should do:
1. Add your new WordPress site to Google Webmaster, verify the site ownership and and also submit a XML Sitemap listing the URLs on your new site.
2. Implement Google Authorship so that your profile pictures appears against your article in Google Search results.
3. Follow these WordPress optimization tips, install some of the essential plug-ins and pay special attention to improving the security of your WordPress site.




    6 comments to ''How to Migrate your Blog from Blogger to WordPress"

    ADD COMMENT
    1. Reinforcement your records before you begin.
      Sign in to your present web have supplier to get to your WordPress records (a File Management device is one model).
      Fare your information base documents.
      Download your WordPress content envelope
      Make a FTP record to have the option to transfer your upheld up WordPress content organizer for your new WordPress site
      for more information click here: HOW TO MOVE WORDPRESS SITE TO THE NEW DOMAIN

      ReplyDelete
    2. Thank you because you have been willing to share information with us. Digital Agency

      ReplyDelete
    3. Looking for online marketing strategies which can transform your business?Below we look at some of the online marketing strategies which you can use to take take your business to the next level. reseller web hosting

      ReplyDelete
    4. On that website page, you'll see your description, why not read through this. https://onohosting.com/

      ReplyDelete
    5. This particular is usually apparently essential and moreover outstanding truth along with for sure fair-minded and moreover admittedly useful My business is looking to find in advance designed for this specific useful stuffs… WEBPROTIME

      ReplyDelete