Skip to main content

How to Migrate from Blogger to WordPress without losing Search Ranking

If you have a Blogger blog and you would like to migrate your blog to WordPress than you can do it quite easily. Blogger is a cool blogging platform and offers lots of features that is enough for peoples who just want to share their blogging experience. And the positive point of Blogger is that it is free and you can monetize your blog and earn money without paying a penny to Blogger. But their are some negative points of Blogger too. Google's Blogger will own your blog and they can remove your blog if they find it full of spams. Although, Blogger is simple to use but you might get difficulties in managing your widgets and creating your navigation menus But with  self hosted WordPress blog, you will own your blog and you can manage your widgets and everything very easily.

How to Migrate from Blogger to WordPress without losing Search Ranking

In this post I will show you how to migrate from Blogger to WordPress without losing any page-rank. You will redirect your blog with 301 permanent redirection. After migration we will be able to achieve 301 redirection with no or very low 404 error pages.
Some of the things which we will be changing following things.
  1. Importing your Blogger posts, comments and users to WordPress.
  2. Redirecting your blog visitors to your new WordPress blog.
  3. Maintaining 301 permanent redirection.
  4. Maintaining labels pages URL to look just like the Blogger label URL.
  5. Maintaining your blog feed subscribers.
Important: Install your WordPress in your root directory. For eg. your homepage is www.example.com rather than www.example.com/my-blog.
Now follow these steps to migrate your Blogger blog to self hosted WordPress blog without losing any traffic and Search Engine Ranking.
  • At first log-in to your WordPress dashboard.
  • After that navigate to Settings > Permalink.
How to Migrate from Blogger to WordPress without losing Pagerank
  • Now in the Common Settings, create a custom permalink structure to match with the Blogger permalink. Just add the following permalink code in the custom structure text field.
/%year%/%monthnum%/%postname%.html
  • Now we will change the permalink structure for the category/labels page. In the Optional tab you will see Category base, now add the following permalink structure in the given text area.
search/label
  • We have changed the permalink structure of the WordPress blog to match with the Blogger link structure.
You are now ready to import your Blogger posts to your WordPress Blog. Follow the following steps to import blog posts.
  • Navigate to Tools > Import. After that choose Blogger from the given options.
  • It will ask you to install the importer plugin. Just install and activate it.
  • Now click on authorize button. After clicking authorize button you will be redirected to Google Request for Permission page.
How to Migrate from Blogger to WordPress without losing Pagerank
  • After granting access, you will be redirected back to your WordPress blog where you will see all your blog which is hosted in Blogger.
How to Migrate from Blogger to WordPress without losing Pagerank
  • Click Import button to start importing your Blogger posts to your WordPress blog.
Great! We have now imported your Blogger posts to WordPress blog. Wait! We have not set the 301 permanent redirection until now. Now its time to setup redirection for your blog. Follow the below given steps very carefully.
  • Log-in to your Blogger account and click on the blog on which you want to setup redirection.
  • Now navigate to Dashboard > Template.
  • In the Template page, keep scrolling down until you're on the bottom of the page.
  • In the very bottom you will see an option Revert to Classic Blogger Template.
How to Migrate from Blogger to WordPress without losing Search Ranking

  • After reverting to classic templates, add the following lines of codes in the HTML content of your blog.
How to Migrate from Blogger to WordPress without losing Search Ranking
  • Add the following code in the HTML content.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="<$BlogLanguageDirection$>">
<head>
<title><$BlogPageTitle$></title>
<script type="text/javascript">
 <MainOrArchivePage>
window.location.href='http://blog.spicytweaks.com/'
</MainOrArchivePage>
 <Blogger><ItemPage>
   window.location.href='http://blog.spicytweaks.com/blogger/?q=<$BlogItemPermalinkURL$>'
 </ItemPage></Blogger>
</script>
<MainPage><link rel="canonical" href="http://blog.spicytweaks.com/" /></MainPage>
<Blogger><ItemPage>
 <link rel="canonical" href="http://blog.spicytweaks.com/<$BlogItemPermalinkURL$>" />
</ItemPage></Blogger>
</head><body>
<div style="border:#ccc 1px solid; background:#eee; padding:20px; margin:80px;">
<p>This page has moved to a new address.</p>
<h1>
<MainOrArchivePage><a href="http://blog.spicytweaks.com"><$BlogTitle$></a></MainOrArchivePage>
<Blogger><ItemPage>
 <a href="http://blog.spicytweaks.com/<$BlogItemPermalinkURL$>"><$BlogItemTitle$></a>
</ItemPage></Blogger>
</h1>
</div> </body></html>
<!-- replace example.com with your WordPress site URL --->
Important: Replace http://blog.spicytweaks.com with your WordPress blog URL. Don't forget this.

  • Now you can save your template.
Now for the WordPress side. See the steps given below.
  • Create a text file and save it as php format. You can name it as blogger2WP.php. Add the following codes in your PHP/text file upload it to the root directory of your blog through any FTP client.
<?php
 /*
  Redirection powered by spicytweaks.com
 */
 global $wpdb;
 $old_url = $_GET['q'];
 if ($old_url != "") {
// Fix for blogger blogs with .de and other tlds in their URLs
$tld_fix = preg_replace("/blogspot.[a-zA-Z0-9]+/", "blogspot.com", $old_url);
$permalink = explode("blogspot.com", $tld_fix);
   $q = "SELECT guid FROM $wpdb->posts LEFT JOIN $wpdb->postmeta ".
        "ON ($wpdb->posts.ID = $wpdb->postmeta.post_id) WHERE ".
        "$wpdb->postmeta.meta_key='blogger_permalink' AND ".
        "$wpdb->postmeta.meta_value='$permalink[1]'";
  $new_url = $wpdb->get_var($q)? $wpdb->get_var($q) : "/";
  header ("HTTP/1.1 301 Moved Permanently");
  header("Location: $new_url");
 }
?>
  • Save the above file as .php format and upload it to your public-html/root directory. You can use free FileZilla FTP client to upload this file to your root folder.
To migrate your feed subscribers, you can add the new feed URL using Blogger settings. Navigate to Dashboard > Settings > Site Feed. Now add a new site feed redirect URL.

That's All! If you have followed the above show steps carefully than you have successfully migrated your Blogger blog to your new self hosted WordPress blog. If you face any problem than feel free to drop a comment below.

Comments

  1. Get daily ideas and methods for earning THOUSANDS OF DOLLARS per day FROM HOME totally FREE.
    JOIN FOR FREE

    ReplyDelete

Post a Comment

Popular posts from this blog

Need for Speed (NFS) Carbon Cheats, Codes and Unlock Parts

Need for Speed makes some great racing games like NFS Most Wanted, Rivals etc. and Need for Speed Carbon is another 10th addition to their NFS series. It's the first game to get the PEGI rating 12+. It's a very good game with it's story line. If you are looking for some adventure and a good racing than this one will be in your game list. While playing the game you will face some difficulty in completing this game. And from than onwards you may look some cheat codes that can help you in completing NFS carbon. And to make it easier for you here is the list of some working cheat codes and trainer. But you proceed to know about cheats and tricks for Need for Speed Carbon you would like to know the adventurous story of the game. So let's start. The game is set in the fictitious city of Palmont. Soon after the player leaves the Rockport City ( remember jumping of an old bridge in last scene of NFS Most Wanted) the player drives on a route to Palmont city with his BMW ca...

How to Watch Any TV Show or Movie on Kodi

Kodi is a cross-platform media center solution developed by XBMC/Kodi Foundation, a non-profit technology association. Kodi which was previously known as XBMC has been growing rapidly from last few years. While the application offers to play local media files, but, it has plethora of third party add-ons, which, we can use to increase it's usefulness. In this post, you'll learn the process to install Indigo and Exodus on Kodi 18 (64-bit). The process is similar on version 17 of this app, however, I haven't checked the previous versions. Note : Streaming copyrighted content is illegal, nevertheless, it's completely legal to use Kodi for viewing the content you've purchased. First, we'll need to add Indigo Installer. Follow the following steps to know how to do it: Open Kodi . Click on the Gear button (settings). Select File Manager . Double Click on Add Source . Click on <None> ... ...type  http://fusion.tvaddons.ag and...

Top 5 Alternatives to Extratorrent

In an unforeseen move, Extratorrent decided to shut down few months ago. It was one of the most popular torrent site, but now users who visit it's homepage are greeted with a message which clearly states they are not going to return in the future. Now that they are gone, various clone sites such as extratorrent.cd has been setup to squeeze money from the confused visitors via its advertisements. People visiting these clone sites should know that the original ExtraTorrent owners have deleted all data, and none of the impostors have access to the old ExtraTorrent files. There are many alternatives out there. You just need to look at the right place. Take a look at the following original torrent sites which might entice you. 1337x.to 1337x is probably the best designed torrent site you'll ever come across. Although it lacks the ExtraTorrents' rating system, nonetheless, most of the contents are verified by moderators. The site has easy-to-navigate subsections whic...