22

Move From Blogger To Wordpress and Maintain Permalinks And Traffic

While moving from blogger to Wordpress is dead easy using the inbuilt blogger importer tool in Wordpress, there is one dilemma/problem that a lot of people face, after importing from blogger, Wordpress does not maintain the Permalinks(post slugs) i.e. the URL of the blog posts. I did a bit of hunting around and I found a solution it a really simple hack thanks to David Pascoe who provided the solution to this problem. I have tested this out and it works perfectly, you can move from blogger to Wordpress and maintain your post URL or Permalinks (Post Slugs), hence maintaining your Google Search Traffic and Page rank without losing out on any Traffic. It took me less than 15 minutes to go through the whole process. (But It might take you longer if your new to WordPress)

Reasons to move from Blogger.

  1. Cutting edge and the very best blogging Software. Comparing Blogger and WordPress, Wordpress beats Blogger hands down.
  2. Huge Community Which means Thousands of free cool Themes and Templates and Plugins.
  3. Easier blogging, better commenting system, spam fighting etc etc.

Draw Backs of Moving from Blogger to Wordpress.

  1. Importing from Blogger to Wordpress doesn’t import your blogger hosted pictures, they’ll still remain on Blogger, they’ll be visible for sometime but since Blogger doesn’t allow hot-linking you won’t seen them after sometime (Read about it here from the official Google FAQ), so you’ll need to move them maually to your webhost or to some photo hosting service. Luckily for most people this is not a big problem since most bloggers host their images on Flickr or Photobucket. For the more Geeky you can check out this Plugin or this shell command to move your pictures to your own domain.

I thought I would write a step-by-step tutorial since a lot of other people/bloggers will find this extremely useful. I am using kiruba.com as an example.

I am assuming a few things here.

  1. You know how to run and install Wordpress. (Here are some Step-by-Step Guides to install Wordpress on your Local computer Or To Install it on your Webhost Look at the Installation Section)
  2. You are using Blogger Beta (I guess by now everyone has been forced to migrate to the new blogger Beta by Google)
  3. You are hosted on your own domain like kiruba.com (for people trying to move from http://yourblog.blogspot.com I have posted extra steps you need to follow at the end)

How To move from Blogger To Wordpress and Maintain your URL/Permalinks/post-slugs and Traffic

1. Install a Temporary Wordpress Installation.

The first step is to Install a temporary Wordpress installation either on your local Computer on in a temporary directory on your web host. The reason why we are installing WordPress on a temporary location is that, since we need to get all the posts from kiruba.com to WordPress then, delete the blogger installation, then Install a fresh Wordpress Installation on kiruba.com and then put back all the Posts. We will use this temporary Wordpress installation to import all your blog posts and comments and to test and see if all your blog posts and original Permalinks or URL’s are being maintained. After Installing WordPress Go To Manage Posts and Pages and Delete the dummy Hello world Post and the About us page these get created automatically when you first install WordPress. Learning how to install and enableing Permalinks is the only difficult part here, the rest is extremely easy.

Important Note: If you are installing Wordpress on your local machine make sure you can use Permalinks. The step-by-step tutorial to install WordPress that I provided above shows you how to enable Permalinks it is given at the very last under the notes section.

2. Modify the Blogger Importer.

Don’t worry there is nothing much to do just download this file BloggerImport and replace it with the original file located at wordpress/wp-admin/import/blogger.php

For the more technically inclined here are the changes that I made to the Blogger.php File thanks to David Pascoe

Open the file WordPress/wp-admin/import/blogger.php and look for the line containing the string wp_insert_post - at around line 520. Insert these 2 lines after the call to wp_insert_post; Note: The second and third line need to be in one single Line I had to break into two lines to fit it in.


preg_match("/([^/]+).html$/", $entry->old_permalink ,$matches);
$wpdb->query("UPDATE $wpdb->posts SET post_name =
'" . $matches[1] . "' WHERE ID = '$post_id'");

3. Import All the Post and Comments From Blogger to Wordpress Using the Importer.

Go to Mange > Import > Blogger

You’ll be presented with a option to Authorize the Importing process Click Authorize

You’ll be asked to Enter your Google User Name and Password.

After which you need to Click the Grant Access Button.

You’ll be shown a list of all the blogs you own on blogger and the number of posts and comments. Click the blog that you want to import.

Once you click the import button you’ll see a progress Bar as the comments and Posts get imported. Once its Done the Text in the Button gets changed to Set Authors Click this.

You will See your blogger username (if you have multiple authors you see them too) select Admin(This is the default Wordpress user) from the drop down list and click save changes.

That’s it your done your done with importing your blog Posts. yay

4. Changing Your URL (Permalinks or Post slugs) to Maintain Your Google Juice and Page Rank

Ok here’s the part you’ve been waiting for its pretty easy go to Options > Permalinks

Change the selection from Default to Custom

Enter the Following text in the Custom Structure Textbox to


/%year%/%monthnum%/%postname%.html

Note: If you’ve installed Wordpress on your local system computer using Xampp like I mentioned above you’ll need to enable Permalinks. The step-by-step tutorial to install WordPress that I provided above shows you how to enable Permalinks under Xampp it is given at the very last under the notes section. After you’ve enabled it you’ll need enter


/index.php/%year%/%monthnum%/%postname%.html

instead of the text I have provided above.

Your done.

5. Checking Your URLs and Permalinks

Once your done just check your URLs to see if they are the same. The parts Highlighted in Bold are the ones you need to check

Original URL:


http://clazh.blogspot.com/2006/10/microsoft-and-apple-together.html

URL after Importing:


http://localhost/kirbs/index.php/2006/10/microsoft-and-apple-together.html

Move Everything To Fresh WordPress Installation

Once you are satisfied with everything, go to your temporary WordPress Installation Manage > Export Click the Download Export File. Download and save the XML file.

Delete your Blogger Installation and files Except your Image Directory i.e. if you have one.

Install a Fresh Copy Of Wordpress in your Original Blog Location Example if your Blog was at kiruba.com then you need to install WordPress in the root if it was at kiruba/blog then you need to install WordPress in a directory called blog.

Import The XML file which you saved before Mange > Import > WordPress Browse and upload the file.

Select Admin from the Drop Down Box and press submit.

Repeat Step 4 to Switch on Permalinks that’s it your done do a Google search for any of your posts if your posts turns up that means you migrated to WordPress successfully while maintaining your Permalinks or URLs.

Extra Steps for Redirecting Your Traffic For Bloggers Moving From A BlogSpot Subdomain.

There are two ways to go about this. One is the quick and dirty way which is also a bit difficult the other is the long way which is the easiest.

The slow and easy way to move from a blogspot Subdomain.

I would recommend you to follow this rather than the quick and dirty way.

Here’s what you need to do.

  1. Buy your own domain.
  2. Use that Custom Domain Option. See this Step-by-Step Guide on configuring Custom Domains.
  3. Your original Blog*Spot address will automatically forward to your new domain. That way, any existing links or bookmarks and search traffic to your site will still work.
  4. Wait for 5-6 months for all search engines to update their data and links to your new site.
  5. Follow the Steps I have outlined above.

The Quick and Dirty way to move from a blogspot Subdomain.

I do not recommend this. Do this only if you are really eager and want to move quickly. See this guide here

19 Comments

Gravatar 1

Great post, really

Ludovic Posted on Thursday, July 12th, 2007 at 7:37 pm
Gravatar 2

Great tutorial, I found you via the ETC blog (http://www.fortysomething.ca/mt/etc/archives/006774.php)

To start, I am not good at all this stuff, so pardon me if these questions are dumb. I’ve been wanting to move, and was worried about my google searches etc etc, which your article takes care of. But what about links that just link to my start/home page? I have some sources that list me as a “blog to read”-about.com and top ten sources, as well as an article in Parents magazine. Since those aren’t article permalinks, am I assuming correctly that if I move those will just turn into broken links?

Jenn @ Frugal Upstate Posted on Friday, July 13th, 2007 at 12:04 am
avatar 3

@jenn Just look at the very last step I have outlined for people on a Blogspot Subdomain like you. Just buy a domain and use bloggers custom domains. Blogger will take care of the redirection. So when some when links to your old URL it will automatically redirect to the new one. If you want more technical information google for 301 redirects. Hope that helps. Contact me if you have anymore doubts.

Arpit Jacob Posted on Friday, July 13th, 2007 at 6:52 am
Gravatar 4

thanks a lot :)

narendra.s.v Posted on Friday, July 13th, 2007 at 5:04 pm
Gravatar 5

Very well written. Great job always.

This is by far the best step by step post about import from Blogger into WordPress.

Thanks!

Terence Chang Posted on Saturday, July 14th, 2007 at 8:55 am
Gravatar 6

This is a very useful post for anyone using Blogger. Thanks for putting it together!

Do you know how to do something similar with TypePad or can you point me in the right direction of someone who might? I’ve tried to search for it but haven’t been very successful in finding anything useful. Thanks in advance!

Phil Gerbyshak Posted on Thursday, July 19th, 2007 at 9:01 am
Gravatar 7

do anybody have an idea why this message appears when I want to import blogger beta to WP 2.2.1

The “next” parameter is not correct or not present.

Impossible d’afficher la page que vous avez demandée. Un autre site a demandé à accéder à votre compte Google, mais sa demande n’était pas rédigée correctement. Contactez le site que vous souhaitiez visiter lorsque vous avez reçu ce message afin de leur faire part de ce problème. Voici le message d’erreur détaillé :

please help.

ipub Posted on Friday, July 20th, 2007 at 8:27 pm
avatar 8

@ipub I am not sure why its happening maybe its because you are trying to import a non-English blog. Try the wordpress.org forum I am sure folks there will be able to help you out.

Arpit Jacob Posted on Friday, July 20th, 2007 at 8:56 pm
Gravatar 9

Any idea how to make this work if you’ve been FTP’ing to your own domain from Blogger? The importer won’t work for FTP blogs - it sees the blog listings, but won’t show any posts.

Thanks for the great step-by-step!

Dan Posted on Monday, July 30th, 2007 at 1:21 am
Gravatar 10

I also want to migrate as it seems that WP has a lot more to offer (I find Blogger not e be intuitive nor easy to configure, plus, they only let you do the thing they like themselves). Of course, blogger is free and let’s you put in ads… So for testing purposes this is very good.

Olivier Posted on Wednesday, September 26th, 2007 at 8:01 pm
Gravatar 11

Like Dan, I want to know about changing my FTP hosted blog - from blogger to my own domain… I have blog.thaipulse.com as the url for my blogger blog it is being FTP’ed from Blogger.com and dumps my posts onto my site via http://FTP.

I want to change this blog to a WP.org blog and local installation in that subdirectory (blog.thaipulse.com). Is this tutorial FOR that? I think so - but you never specify that this tutorial is for FTP’ed blogs from blogger.

Thanks for your help!

Vern

Vern Posted on Thursday, October 4th, 2007 at 9:52 am
Gravatar 12

I found out why the import does not work: blogger recently changed its site, so you need to look for the 2 lines that say https://www2.google.com and change them to https://www.google.com
Then it works fine.

olivier Posted on Sunday, November 4th, 2007 at 1:17 am
Gravatar 13

i had the same problem when i shifted from blogger to Wordpress. the sad thing is i never had the chance to get this technique or “hack” before i had the chance to improve m blogs in wordpress. good post though.

jessie Posted on Tuesday, November 13th, 2007 at 7:17 pm
Gravatar 14

good post. this has been plaguing a lot of people who want to migrate from blogger to wordpress.

jessie Posted on Thursday, December 6th, 2007 at 2:27 pm
avatar 15

jessie » With the new wordpress 2.3 release this hack is not really required. Since wordpress 2.3 has something called canonical urls.

Arpit Jacob Posted on Thursday, December 6th, 2007 at 4:05 pm
Gravatar 16

I’m trying to migrate a blog for my friend by your process. He has been on blogger with custom domain for 4months now.

My Q is, when I import posts and setup WP, and change the nameservers to point to the new blog, won’t direct links be harmed?

Or will the redirection take place even after switching nameservers (but without changing the settings of custom domain in control panel of blogger)?

Sumesh Posted on Saturday, January 19th, 2008 at 1:04 pm
Gravatar 17

its not true that it is dead easy to import Blogger posts to wordpress because it is returning me an error even if i already “granted access” to wordpress to fetch my blogger posts, still it says it cannot because there is trouble signing in..whats up with this? it seems to be an isolated case unfortunately it was to be ME!

Showbiz Intriga? get it from Boy! Posted on Sunday, January 20th, 2008 at 6:30 pm
Gravatar 18

When I moved one of sites from blogger to WP, a lot of problems have been encountered and maybe if I researched more, I shouldn’t have had as many difficulties as I had encountered. Migrating from one publishing tool to another is really a pain in the b*tt.

jps61974 Posted on Tuesday, February 12th, 2008 at 12:54 pm
Gravatar 19

This is very good, but if you can’t get the redirection to work, you have to try something else. I moved from Blogger to Wordpress and had to do it differently, so read my post on it also if this didn’t work for you.

Aseem Kishore Posted on Wednesday, March 26th, 2008 at 8:29 pm

3 Trackbacks/Pingbacks

Pingback on July 13, 2007

[…] explique comment migrer de Wordpress à Blogger sans casser ses liens et sans perdre son traffic.C’est par ici. Ces pages pourraient aussi vous interresser: Générateur de thèmes […]

Trackback on July 23, 2007

Managing obsolete pages with one line of code…

When I switched from Blogger to Wordpress I had to deal with the problem of how to deal with the old pages.
Blogger style of archiving was static. That means that for every post you created, the Blogger system created a static HTML page.
Wordpress on t…

Pingback on October 16, 2007

[…] Installera en tillfällig wordpress.com-blogg För att kunna importera Blogger-bloggen pÃ¥ smidigaste sätt är en installation av en tillfällig wordpress.com-blogg nödvändig. Läs mer om hur du gör här. […]

Leave a comment

- Why ask? This confirms you are a human user!

All Rights Reserved Copyright © 2008, and Design by Arpit Jacob. XML SiteMap, XHTML Sitemap, RSS Entries and Comments