Tuesday

How to Migrate your Blog from Blogger to WordPress Without Loosing Traffic and Search Engine Rankings

Blogger is an excellent free platform to start blogging.

It is easy to start with a blogger, but then the time comes when you want complete control of your blog and use your self-hosted WordPress blog.

Migrating or Shifting from blogger generally result drop in the traffic and Google ranking.

So for those who want to migrate, here is a step-by-step guide to help you migrate your blog from Blogger to WordPress without losing traffic and rankings.

The very first thing you need is your domain and a WordPress hosting service provider.

You need to sign up at WordPress and install WordPress on your new website.
Then import your blog content from Blogger to WordPress.

Step 1 : Import your Blogger Blog to WordPress

How to Import blogger Blog to Wordpress ?
To import Blogger Blog to WordPress, go to Tools-> then Import and then click on Blogger.

 
A pop-up will open, asking to install the blogger importer plugin. Click on Install. After installation, activate the plugin and Run the Importer link to continue.

You will see another screen where you must authorize WordPress to import Blogger Blog.

Click Authorize button and your Google Accounts page will open.

You will get the notification that WordPress asks permission to manage your Blogger account.

Then Click on Allow access button.


A list of Blogger Blogs will open; click the assign button next to the blogger blog you want to import.


After WordPress imports all posts, you need to assign the author to imported posts.

This way, you successfully imported your Blogger blog to WordPress..!

You need to make sure that you do not lose visitors and Rankings to your old blog.

Step 2 : Setting up Permalinks

WordPress lets you set up SEO friendly structure of URL.

But as you have imported a blog from a blogger, you want an almost identical permalink for a new WordPress blog.

To set permalinks, go to Settings-> Permalinks and choose Name and Month as your permalink structure.




Step 3 : Setting up Redirection

This is the essential step so that users will redirect to your blog.
 
We want search engines to notice that your old site is moved to a new location and users to land on the same page on the new site.

We just need to set up redirection at 2 levels:
  1. Redirect blogger blog visitors to new WordPress blog.
  2. Once users reach a new WordPress site, they will redirect to the post they were accessing on the Blogger blog.
Setting up redirection on Blogger blog:

Login to your Blogger blog account, go to settings and click on Template.

Scroll down to the bottom end and click on “Revert to Classic Template” on the template page.


Then you will see the “Edit Template Html.” You must replace the entire code with the following code. Make sure that you replace www.mywebsite.com with your domain name.

"
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="<$BlogLanguageDirection$>">
<head>
<title><$BlogPageTitle$></title>
<script type="text/javascript">
<MainOrArchivePage>
window.location.href='www.mywebsite.com'
</MainOrArchivePage>
<Blogger><ItemPage>
window.location.href='www.mywebsite.comblogger/?q=<$BlogItemPermalinkURL$>'
</ItemPage></Blogger>
</script>
<MainPage><link rel="canonical" href="www.mywebsite.com" /></MainPage>
<Blogger><ItemPage>
<link rel="canonical" href="www.mywebsite.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="https://www.mywebsite.com"><$BlogTitle$></a></MainOrArchivePage>
<Blogger><ItemPage>
<a href="www.mywebsite.com<$BlogItemPermalinkURL$>"><$BlogItemTitle$></a>
</ItemPage></Blogger>
</h1>
</div> </body></html>
<!-- replace mywebsite.com with your WordPress site URL --->
"

Save the template, and you have implemented redirection on the Blogger blog.
 
Now you need to set up your redirection on the new WordPress site so that users will be redirected to proper posts.
 
You need to create a new file using a text editor like Notepad.
 
Give this file a name like wpb-blogger.php and paste the following code inside it.

 "
<?php
02 /*
03 Template Name: mywebsite Template
04 */
05 global $wpdb;
06 $old_url = $_GET['q'];
07 if ($old_url != "") {
08
09 // Fix for blogger blogs with .de and other tlds in their URLs
10 $tld_fix = preg_replace("/blogspot.[a-zA-Z0-9]+/","blogspot.com", $old_url);
11 $permalink = explode("blogspot.com", $tld_fix);
12 $q = "SELECT guid FROM $wpdb->posts LEFT JOIN $wpdb->postmeta ".
13 "ON ($wpdb->posts.ID = $wpdb->postmeta.post_id) WHERE ".
14 "$wpdb->postmeta.meta_key='blogger_permalink' AND ".
15 "$wpdb->postmeta.meta_value='$permalink[1]'";
16 $new_url = $wpdb->get_var($q)? $wpdb->get_var($q) : "/";
17 header ("HTTP/1.1 301 Moved Permanently");
18 header("Location: $new_url");
19 }
20 ?>
"

Step 4 : Redirect Feeds

How to Redirect Blogger feed to Wordpress?
  • Log on to Blogger account. Go to the Settings and click Other.
  • You will see the Site Feed section; click on Add link next to Post Feed Redirect URL.
  • Here, type the new WordPress RSS feed address, and the existing RSS feed subscriber will automatically move to the new feed.
I myself prefer and suggest everyone to use Bluehost hosting for WordPress as they are most reliable and also recommended by WordPress itself. Bluehost offering 56% discount on hosting and free domain. to grab this opportunity click here

Man Behind eAskme

Gaurav Kumar

Gaurav Kumar is the founder of eAskme.com. He is the professional blogger, writer, motivational speaker and online entrepreneur. He the man behind "Blogging for money guide" and "complete domain name guide". eAskme will help you to become an online entrepreneur. You can learn SEO, Money MAKING, SEO, blogging and more.

More About Me